diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 03:58:36 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 03:58:36 +0000 |
commit | 44292e80acfd76d3584054b059a9559f2f449390 (patch) | |
tree | 467a42cc3125c4587b97cb255e650cf0f1d8d646 /test | |
parent | ec53c65238657de17edc7109680cf8f16abaefa8 (diff) |
Use a better name for compile unit labels.
They mark the start of a compile unit, so name them .Lcu_*. Using
Section->getLabelBeginName() makes it looks like they mark the start of the
section.
While at it, switch to createTempSymbol to avoid collisions with labels
created in inline assembly. Not sure if a "don't crash" test is worth it.
With this getLabelBeginName is dead, delete it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/X86/dwarf-aranges.ll | 2 | ||||
-rw-r--r-- | test/DebugInfo/X86/dwarf-pubnames-split.ll | 2 | ||||
-rw-r--r-- | test/DebugInfo/X86/multiple-aranges.ll | 4 | ||||
-rw-r--r-- | test/DebugInfo/X86/ref_addr_relocation.ll | 2 | ||||
-rw-r--r-- | test/DebugInfo/X86/stmt-list-multiple-compile-units.ll | 4 |
5 files changed, 7 insertions, 7 deletions
diff --git a/test/DebugInfo/X86/dwarf-aranges.ll b/test/DebugInfo/X86/dwarf-aranges.ll index 57207c4717e..56acbdf428a 100644 --- a/test/DebugInfo/X86/dwarf-aranges.ll +++ b/test/DebugInfo/X86/dwarf-aranges.ll @@ -3,7 +3,7 @@ ; -- header -- ; CHECK: .short 2 # DWARF Arange version number -; CHECK-NEXT: .long .L.debug_info_begin0 +; CHECK-NEXT: .long .Lcu_begin0 ; CHECK-NEXT: .byte 8 # Address Size (in bytes) ; CHECK-NEXT: .byte 0 # Segment Size (in bytes) ; -- alignment -- diff --git a/test/DebugInfo/X86/dwarf-pubnames-split.ll b/test/DebugInfo/X86/dwarf-pubnames-split.ll index 12dbb4a3b1b..97ff1ca426a 100644 --- a/test/DebugInfo/X86/dwarf-pubnames-split.ll +++ b/test/DebugInfo/X86/dwarf-pubnames-split.ll @@ -9,7 +9,7 @@ ; CHECK: .LpubTypes_begin0: ; CHECK-NEXT: .short 2 # DWARF Version -; CHECK-NEXT: .long .L.debug_info_begin0 # Offset of Compilation Unit Info +; CHECK-NEXT: .long .Lcu_begin0 # Offset of Compilation Unit Info ; Function Attrs: nounwind uwtable define i32 @main() #0 { diff --git a/test/DebugInfo/X86/multiple-aranges.ll b/test/DebugInfo/X86/multiple-aranges.ll index 80970695a55..99878a594a9 100644 --- a/test/DebugInfo/X86/multiple-aranges.ll +++ b/test/DebugInfo/X86/multiple-aranges.ll @@ -6,7 +6,7 @@ ; First CU ; CHECK-NEXT: .long 44 # Length of ARange Set ; CHECK-NEXT: .short 2 # DWARF Arange version number -; CHECK-NEXT: .long .L.debug_info_begin0 # Offset Into Debug Info Section +; CHECK-NEXT: .long .Lcu_begin0 # Offset Into Debug Info Section ; CHECK-NEXT: .byte 8 # Address Size (in bytes) ; CHECK-NEXT: .byte 0 # Segment Size (in bytes) ; CHECK-NEXT: .zero 4,255 @@ -18,7 +18,7 @@ ; Second CU ; CHECK-NEXT: .long 44 # Length of ARange Set ; CHECK-NEXT: .short 2 # DWARF Arange version number -; CHECK-NEXT: .long .L.debug_info_begin1 # Offset Into Debug Info Section +; CHECK-NEXT: .long .Lcu_begin1 # Offset Into Debug Info Section ; CHECK-NEXT: .byte 8 # Address Size (in bytes) ; CHECK-NEXT: .byte 0 # Segment Size (in bytes) ; CHECK-NEXT: .zero 4,255 diff --git a/test/DebugInfo/X86/ref_addr_relocation.ll b/test/DebugInfo/X86/ref_addr_relocation.ll index 5534689aea6..4cf7abcb6a9 100644 --- a/test/DebugInfo/X86/ref_addr_relocation.ll +++ b/test/DebugInfo/X86/ref_addr_relocation.ll @@ -23,7 +23,7 @@ ; CHECK: DW_TAG_variable ; CHECK: .long [[TYPE:.*]] # DW_AT_type ; CHECK: DW_TAG_structure_type -; CHECK: debug_info_begin1 +; CHECK: cu_begin1 ; CHECK: DW_TAG_compile_unit ; CHECK-NOT: DW_TAG_structure_type ; This variable's type is in the 1st CU. diff --git a/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll b/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll index 76945f3fe4f..8e1c3c92448 100644 --- a/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll +++ b/test/DebugInfo/X86/stmt-list-multiple-compile-units.ll @@ -50,10 +50,10 @@ ; DWARF3-NOT: file_names ; PR15408 -; ASM: L__DWARF__debug_info_begin0: +; ASM: Lcu_begin0: ; ASM: Lset3 = Lline_table_start0-Lsection_line ## DW_AT_stmt_list ; ASM-NEXT: .long Lset3 -; ASM: L__DWARF__debug_info_begin1: +; ASM: Lcu_begin1: ; ASM: Lset13 = Lline_table_start0-Lsection_line ## DW_AT_stmt_list ; ASM-NEXT: .long Lset13 define i32 @test(i32 %a) nounwind uwtable ssp { |