diff options
author | Eric Christopher <echristo@gmail.com> | 2013-09-20 23:22:52 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-09-20 23:22:52 +0000 |
commit | 9e0b08dd2053843fd330774cdbac06a7b0191f14 (patch) | |
tree | ddcb67b5aff1012d9d1fbd578217743d62306022 /test | |
parent | d93e8a06b2ca09ab18f390cd514b7443e2e571f7 (diff) | |
download | external_llvm-9e0b08dd2053843fd330774cdbac06a7b0191f14.zip external_llvm-9e0b08dd2053843fd330774cdbac06a7b0191f14.tar.gz external_llvm-9e0b08dd2053843fd330774cdbac06a7b0191f14.tar.bz2 |
Move emission of the debug string table to early in the debug
info finalization to greatly reduce the number of fixups that the
assembler has to handle in order to improve compile time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/DebugInfo/AArch64/variable-loc.ll | 7 | ||||
-rw-r--r-- | test/DebugInfo/SystemZ/variable-loc.ll | 5 | ||||
-rw-r--r-- | test/DebugInfo/X86/stringpool.ll | 14 |
3 files changed, 13 insertions, 13 deletions
diff --git a/test/DebugInfo/AArch64/variable-loc.ll b/test/DebugInfo/AArch64/variable-loc.ll index 1f4f12a..6005ac0 100644 --- a/test/DebugInfo/AArch64/variable-loc.ll +++ b/test/DebugInfo/AArch64/variable-loc.ll @@ -23,7 +23,10 @@ ; CHECK: add x29, sp, #416 ; CHECK: add {{x[0-9]+}}, sp, #4 - ; Now check the debugging information reflects this: +; CHECK: .Linfo_string7: +; CHECK-NEXT: main_arr + +; Now check the debugging information reflects this: ; CHECK: DW_TAG_variable ; CHECK-NEXT: .word .Linfo_string7 @@ -32,8 +35,6 @@ ; CHECK-NEXT: .byte 145 ; CHECK-NEXT: .ascii "\344|" -; CHECK: .Linfo_string7: -; CHECK-NEXT: main_arr target datalayout = "e-p:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-i128:128:128-f32:32:32-f64:64:64-f128:128:128-n32:64-S128" diff --git a/test/DebugInfo/SystemZ/variable-loc.ll b/test/DebugInfo/SystemZ/variable-loc.ll index a191b06..7ab47d8 100644 --- a/test/DebugInfo/SystemZ/variable-loc.ll +++ b/test/DebugInfo/SystemZ/variable-loc.ll @@ -11,6 +11,9 @@ ; CHECK: la %r2, 164(%r11) ; CHECK: brasl %r14, populate_array@PLT ; +; CHECK: .Linfo_string7: +; CHECK-NEXT: main_arr +; ; Now check that the debugging information reflects this: ; CHECK: DW_TAG_variable ; CHECK-NEXT: .long .Linfo_string7 @@ -21,8 +24,6 @@ ; CHECK-NEXT: .byte 145 ; CHECK-NEXT: .ascii "\244\001" ; -; CHECK: .Linfo_string7: -; CHECK-NEXT: main_arr @.str = private unnamed_addr constant [13 x i8] c"Total is %d\0A\00", align 2 diff --git a/test/DebugInfo/X86/stringpool.ll b/test/DebugInfo/X86/stringpool.ll index 45c2b2a..40b5977 100644 --- a/test/DebugInfo/X86/stringpool.ll +++ b/test/DebugInfo/X86/stringpool.ll @@ -16,6 +16,12 @@ !7 = metadata !{i32 720932, null, null, metadata !"int", i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ] !8 = metadata !{metadata !"z.c", metadata !"/home/nicholas"} +; Verify that "yyyy" ended up in the stringpool. +; LINUX: .section .debug_str,"MS",@progbits,1 +; LINUX: yyyy +; DARWIN: .section __DWARF,__debug_str,regular,debug +; DARWIN: yyyy + ; Verify that we refer to 'yyyy' with a relocation. ; LINUX: .long .Linfo_string3 # DW_AT_name ; LINUX-NEXT: .long 38 # DW_AT_type @@ -36,11 +42,3 @@ ; DARWIN-NEXT: .byte 9 ## DW_AT_location ; DARWIN-NEXT: .byte 3 ; DARWIN-NEXT: .quad _yyyy - -; Verify that "yyyy" ended up in the stringpool. -; LINUX: .section .debug_str,"MS",@progbits,1 -; LINUX-NOT: .section -; LINUX: yyyy -; DARWIN: .section __DWARF,__debug_str,regular,debug -; DARWIN-NOT: .section -; DARWIN: yyyy |