diff options
| author | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2018-09-12 12:01:19 +0000 |
|---|---|---|
| committer | Wolfgang Pieb <Wolfgang.Pieb@sony.com> | 2018-09-12 12:01:19 +0000 |
| commit | 3a8781cf6cab2413261dff6971046f4ef4a63cc4 (patch) | |
| tree | ca4188da03930421687f0a450de1948e981c6f18 /llvm/test/DebugInfo/Generic | |
| parent | 88e18a620155c1a058725e19c5f2c0d48ba54ec4 (diff) | |
| download | bcm5719-llvm-3a8781cf6cab2413261dff6971046f4ef4a63cc4.tar.gz bcm5719-llvm-3a8781cf6cab2413261dff6971046f4ef4a63cc4.zip | |
[DWARF] Refactoring range list dumping to fold DWARF v4 functionality into v5 handling
Eliminating some duplication of rangelist dumping code at the expense of
some version-dependent code in dump and extract routines.
Reviewer: dblaikie, JDevlieghere, vleschuk
Differential revision: https://reviews.llvm.org/D51081
llvm-svn: 342048
Diffstat (limited to 'llvm/test/DebugInfo/Generic')
| -rw-r--r-- | llvm/test/DebugInfo/Generic/cu-ranges.ll | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/test/DebugInfo/Generic/cu-ranges.ll b/llvm/test/DebugInfo/Generic/cu-ranges.ll index cb9066fce3a..5ca6e8a9afd 100644 --- a/llvm/test/DebugInfo/Generic/cu-ranges.ll +++ b/llvm/test/DebugInfo/Generic/cu-ranges.ll @@ -4,18 +4,18 @@ ; Check that we emit ranges for this which has a non-traditional section and a normal section. -; CHECK: DW_TAG_compile_unit -; CHECK: DW_AT_ranges -; CHECK: DW_TAG_subprogram -; CHECK: DW_AT_low_pc -; CHECK: DW_AT_high_pc -; CHECK: DW_TAG_subprogram -; CHECK: DW_AT_low_pc -; CHECK: DW_AT_high_pc - -; CHECK: .debug_ranges contents: -; FIXME: When we get better dumping facilities we'll want to elaborate here. -; CHECK: 00000000 <End of list> +; CHECK: .debug_info contents: +; CHECK: DW_TAG_compile_unit +; CHECK-NOT: DW_TAG +; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x +; CHECK-NEXT: "__TEXT,__foo" +; CHECK-NEXT: ".text") +; CHECK: DW_TAG_subprogram +; CHECK: DW_AT_low_pc +; CHECK: DW_AT_high_pc +; CHECK: DW_TAG_subprogram +; CHECK: DW_AT_low_pc +; CHECK: DW_AT_high_pc ; Function Attrs: nounwind uwtable define i32 @foo(i32 %a) #0 section "__TEXT,__foo" !dbg !4 { |

