diff options
author | Manman Ren <manman.ren@gmail.com> | 2013-10-29 05:49:41 +0000 |
---|---|---|
committer | Manman Ren <manman.ren@gmail.com> | 2013-10-29 05:49:41 +0000 |
commit | f6b936bc062e7490cfe956d58d47ba92b46e830f (patch) | |
tree | c8206c7550195f3ee9eed8057d98059eda1fbec2 /llvm/test/DebugInfo/X86/stringpool.ll | |
parent | b1ffd99b6a262f674c4cf8ca81205f39baed6765 (diff) | |
download | bcm5719-llvm-f6b936bc062e7490cfe956d58d47ba92b46e830f.tar.gz bcm5719-llvm-f6b936bc062e7490cfe956d58d47ba92b46e830f.zip |
Debug Info: instead of calling addToContextOwner which constructs the context
after the DIE creation, we construct the context first.
This touches creation of namespaces and global variables. The purpose is to
handle all DIE creations similarly: constructs the context first, then creates
the DIE and immediately adds the DIE to its parent.
We use createAndAddDIE to wrap around "new DIE(".
llvm-svn: 193589
Diffstat (limited to 'llvm/test/DebugInfo/X86/stringpool.ll')
-rw-r--r-- | llvm/test/DebugInfo/X86/stringpool.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/DebugInfo/X86/stringpool.ll b/llvm/test/DebugInfo/X86/stringpool.ll index c8cba739565..81ab8e6edb1 100644 --- a/llvm/test/DebugInfo/X86/stringpool.ll +++ b/llvm/test/DebugInfo/X86/stringpool.ll @@ -21,7 +21,7 @@ ; Verify that we refer to 'yyyy' with a relocation. ; LINUX: .long .Linfo_string3 # DW_AT_name -; LINUX-NEXT: .long 38 # DW_AT_type +; LINUX-NEXT: .long {{[0-9]+}} # DW_AT_type ; LINUX-NEXT: # DW_AT_external ; LINUX-NEXT: .byte 1 # DW_AT_decl_file ; LINUX-NEXT: .byte 1 # DW_AT_decl_line @@ -30,9 +30,9 @@ ; LINUX-NEXT: .quad yyyy ; Verify that we refer to 'yyyy' without a relocation. -; DARWIN: Lset5 = Linfo_string3-Linfo_string ## DW_AT_name -; DARWIN-NEXT: .long Lset5 -; DARWIN-NEXT: .long 38 ## DW_AT_type +; DARWIN: Lset[[ID:[0-9]+]] = Linfo_string3-Linfo_string ## DW_AT_name +; DARWIN-NEXT: .long Lset[[ID]] +; DARWIN-NEXT: .long {{[0-9]+}} ## DW_AT_type ; DARWIN-NEXT: ## DW_AT_external ; DARWIN-NEXT: .byte 1 ## DW_AT_decl_file ; DARWIN-NEXT: .byte 1 ## DW_AT_decl_line |