Skip to content

Commit

Permalink
[llvm-dwarfdump][test] Rewrite verify_die_ranges.s in YAML. NFC.
Browse files Browse the repository at this point in the history
This patch rewrites test case verify_die_ranges.s in YAML which helps
simplify the test.

Reviewed By: jhenderson, JDevlieghere, dblaikie

Differential Revision: https://reviews.llvm.org/D88200
  • Loading branch information
higuoxing committed Oct 9, 2020
1 parent dd55499 commit c1489ee
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 80 deletions.
80 changes: 0 additions & 80 deletions llvm/test/tools/llvm-dwarfdump/X86/verify_die_ranges.s

This file was deleted.

28 changes: 28 additions & 0 deletions llvm/test/tools/llvm-dwarfdump/X86/verify_die_ranges.yaml
@@ -0,0 +1,28 @@
# RUN: yaml2obj %s -o %t.o
# RUN: not llvm-dwarfdump -verify %t.o | FileCheck %s

# CHECK: Verifying .debug_info Unit Header Chain...
# CHECK-NEXT: error: Invalid address range [0x0000000000000007, 0x0000000000000006)

--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
DWARF:
debug_abbrev:
- Table:
- Tag: DW_TAG_compile_unit
Children: DW_CHILDREN_no
Attributes:
- Attribute: DW_AT_low_pc
Form: DW_FORM_addr
- Attribute: DW_AT_high_pc
Form: DW_FORM_addr
debug_info:
- Version: 4
Entries:
- AbbrCode: 1
Values:
- Value: 0x07
- Value: 0x06

0 comments on commit c1489ee

Please sign in to comment.