diff options
author | Eric Christopher <echristo@gmail.com> | 2014-01-29 22:06:27 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-01-29 22:06:27 +0000 |
commit | c879504978f4bb2aebe9189ed7a3866e3003c961 (patch) | |
tree | 549e9b8f22c83e01858e1d33691e9668ed11a44e /test/DebugInfo | |
parent | 4ec1a52c5f1aa320ec696e500605e99319f46488 (diff) | |
download | llvm-c879504978f4bb2aebe9189ed7a3866e3003c961.tar.gz llvm-c879504978f4bb2aebe9189ed7a3866e3003c961.tar.bz2 llvm-c879504978f4bb2aebe9189ed7a3866e3003c961.tar.xz |
Turn on CU ranges if we've got multiple compile units in the same
module since there's no range guarantee that we could make given
output order. This also fixes up the testcases that have multiple
CUs to have the correct range offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo')
-rw-r--r-- | test/DebugInfo/X86/stmt-list-multiple-compile-units.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll b/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll index e63cbd11e4..5cb8f613a3 100644 --- a/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll +++ b/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll @@ -8,11 +8,11 @@ ; CHECK: .debug_info contents: ; CHECK: DW_TAG_compile_unit ; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] (0x00000000) -; CHECK: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000) +; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x00000000) ; CHECK: DW_TAG_compile_unit ; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] (0x0000003c) -; CHECK: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000) +; CHECK: DW_AT_ranges [DW_FORM_sec_offset] (0x00000020) ; CHECK: .debug_line contents: ; CHECK-NEXT: Line table prologue: @@ -25,12 +25,12 @@ ; DWARF3: .debug_info contents: ; DWARF3: DW_TAG_compile_unit -; DWARF3: DW_AT_stmt_list [DW_FORM_data4] (0x00000000) -; DWARF3: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000) +; DWARF3: DW_AT_stmt_list [DW_FORM_data4] (0x00000000) +; DWARF3: DW_AT_ranges [DW_FORM_data4] (0x00000000) ; DWARF3: DW_TAG_compile_unit ; DWARF3: DW_AT_stmt_list [DW_FORM_data4] (0x0000003c) -; DWARF3: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000) +; DWARF3: DW_AT_ranges [DW_FORM_data4] (0x00000020) ; DWARF3: .debug_line contents: ; DWARF3-NEXT: Line table prologue: |