diff options
| author | Ekaterina Romanova <katya_romanova@playstation.sony.com> | 2016-10-27 23:20:19 +0000 |
|---|---|---|
| committer | Ekaterina Romanova <katya_romanova@playstation.sony.com> | 2016-10-27 23:20:19 +0000 |
| commit | b7f96d1241f89ecc22efe6365967e79c3ccebafa (patch) | |
| tree | 8d298572ea00d5e9531fc266cfe7fcb9bdb976cf /llvm/test/DebugInfo/X86 | |
| parent | 614dc150ec761140d21f52c9bb1a1c45db38e12f (diff) | |
| download | bcm5719-llvm-b7f96d1241f89ecc22efe6365967e79c3ccebafa.tar.gz bcm5719-llvm-b7f96d1241f89ecc22efe6365967e79c3ccebafa.zip | |
Reverting back r285355: "Update .debug_line section version information to match DWARF version", while I'm investigating a test failure.
llvm-svn: 285362
Diffstat (limited to 'llvm/test/DebugInfo/X86')
| -rw-r--r-- | llvm/test/DebugInfo/X86/debug-line-version.s | 39 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/empty.ll | 2 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll | 6 |
3 files changed, 4 insertions, 43 deletions
diff --git a/llvm/test/DebugInfo/X86/debug-line-version.s b/llvm/test/DebugInfo/X86/debug-line-version.s deleted file mode 100644 index 46041097047..00000000000 --- a/llvm/test/DebugInfo/X86/debug-line-version.s +++ /dev/null @@ -1,39 +0,0 @@ -// RUN: llvm-mc -g -dwarf-version 2 -triple i686-pc-linux-gnu %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck --check-prefix=DWARF2 %s -// RUN: llvm-mc -g -dwarf-version 3 -triple i686-pc-linux-gnu %s -filetype=obj -o - |llvm-dwarfdump - | FileCheck --check-prefix=DWARF3 %s -// RUN: llvm-mc -g -dwarf-version 4 -triple i686-pc-linux-gnu %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck --check-prefix=DWARF4 %s - - -// Check that we generate debug_line version that matches the dwarf version. -// For DWARF-4, additionally check that maximum_operations_per_instruction -// field is emitted. - - .text - .globl foo - .type foo, @function - .align 4 -foo: - ret - .size foo, .-foo - -// DWARF2: Compile Unit: length = {{.*}} version = 0x0002 -// DWARF2: Line table prologue: -// DWARF2-NEXT: total_length: 0x00000077 -// DWARF2-NEXT: version: 2 -// DWARF2-NEXT: prologue_length: 0x00000062 -// DWARF2-NOT: max_ops_per_inst: 1 - -// DWARF3: Compile Unit: length = {{.*}} version = 0x0003 -// DWARF3: Line table prologue: -// DWARF3-NEXT: total_length: 0x00000077 -// DWARF3-NEXT: version: 3 -// DWARF3-NEXT: prologue_length: 0x00000062 -// DWARF3-NOT: max_ops_per_inst: 1 - - -// DWARF4: Compile Unit: length = {{.*}} version = 0x0004 -// DWARF4: Line table prologue: -// DWARF4-NEXT: total_length: 0x00000078 -// DWARF4-NEXT: version: 4 -// DWARF4-NEXT: prologue_length: 0x00000063 -// DWARF4: max_ops_per_inst: 1 - diff --git a/llvm/test/DebugInfo/X86/empty.ll b/llvm/test/DebugInfo/X86/empty.ll index 6506f5567ad..e156e3bbe5e 100644 --- a/llvm/test/DebugInfo/X86/empty.ll +++ b/llvm/test/DebugInfo/X86/empty.ll @@ -4,7 +4,7 @@ ; Expect no line table entry since there are no functions and file references in this compile unit ; CHECK: .debug_line contents: ; CHECK: Line table prologue: -; CHECK: total_length: 0x0000001a +; CHECK: total_length: 0x00000019 ; CHECK-NOT: file_names[ ; CHECK: .debug_pubnames contents: diff --git a/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll b/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll index a60725fe685..527f577134c 100644 --- a/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll +++ b/llvm/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll @@ -15,7 +15,7 @@ ; CHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000010) ; CHECK: DW_TAG_compile_unit -; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] (0x0000003d) +; CHECK: DW_AT_stmt_list [DW_FORM_sec_offset] (0x0000003c) ; CHECK: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000010) ; CHECK: DW_AT_high_pc [DW_FORM_data4] (0x00000009) ; CHECK: DW_TAG_subprogram @@ -25,10 +25,10 @@ ; CHECK: .debug_line contents: ; CHECK-NEXT: Line table prologue: -; CHECK-NEXT: total_length: 0x00000039 +; CHECK-NEXT: total_length: 0x00000038 ; CHECK: file_names[ 1] 0 0x00000000 0x00000000 simple.c ; CHECK: Line table prologue: -; CHECK-NEXT: total_length: 0x0000003a +; CHECK-NEXT: total_length: 0x00000039 ; CHECK: file_names[ 1] 0 0x00000000 0x00000000 simple2.c ; CHECK-NOT: file_names |

