summaryrefslogtreecommitdiff
path: root/test/DebugInfo/X86/elf-names.ll
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2013-10-29 00:58:04 +0000
committerManman Ren <manman.ren@gmail.com>2013-10-29 00:58:04 +0000
commitbbdd02cc303d0f38f7739b64f419d645ca17b533 (patch)
treeca555cce9d2cf9433d337eded22ab6467f726ac7 /test/DebugInfo/X86/elf-names.ll
parent1a5e787f701c45ac2487d400faf6f6d4def6dcef (diff)
downloadllvm-bbdd02cc303d0f38f7739b64f419d645ca17b533.tar.gz
llvm-bbdd02cc303d0f38f7739b64f419d645ca17b533.tar.bz2
llvm-bbdd02cc303d0f38f7739b64f419d645ca17b533.tar.xz
Debug Info: use createAndAddDIE for newly-created Subprogram DIEs.
More patches will be submitted to convert "new DIE(" to use createAddAndDIE in DwarfCompileUnit.cpp. This will simplify implementation of addDIEEntry where we have to decide between ref4 and ref_addr, because DIEs that can be shared across CU will be added to a CU already. Reviewed off-list by Eric. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/X86/elf-names.ll')
-rw-r--r--test/DebugInfo/X86/elf-names.ll13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/DebugInfo/X86/elf-names.ll b/test/DebugInfo/X86/elf-names.ll
index b85f5fb84b..96538150f6 100644
--- a/test/DebugInfo/X86/elf-names.ll
+++ b/test/DebugInfo/X86/elf-names.ll
@@ -4,11 +4,14 @@
; CHECK: 0x0000000b: DW_TAG_compile_unit
; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000035] = "foo.cpp")
-; CHECK: 0x0000003c: DW_TAG_class_type
-; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000006d] = "D")
-; CHECK: 0x00000044: DW_TAG_member
-; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000005d] = "c1")
-; CHECK: DW_AT_artificial [DW_FORM_flag_present] (true)
+; CHECK: 0x{{[0-9a-f]+}}: DW_TAG_class_type
+; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]+}}] = "D")
+; CHECK: 0x{{[0-9a-f]+}}: DW_TAG_member
+; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]+}}] = "c1")
+; CHECK: DW_TAG_subprogram
+; CHECK-NEXT: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]+}}] = "D")
+; CHECK: DW_TAG_formal_parameter
+; CHECK: DW_AT_artificial [DW_FORM_flag_present] (true)
; CHECK-DIS: [artificial]