diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-14 22:27:36 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-01-14 22:27:36 +0000 |
commit | 9885469922266d43622af58871253fadfef42d48 (patch) | |
tree | fc06d29b0e8d1b751e25e109086ba0fcfc1ef842 /llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll | |
parent | 96a319588a752c0254f8b214c2454a95855bcac4 (diff) | |
download | bcm5719-llvm-9885469922266d43622af58871253fadfef42d48.tar.gz bcm5719-llvm-9885469922266d43622af58871253fadfef42d48.zip |
IR: Move MDLocation into place
This commit moves `MDLocation`, finishing off PR21433. There's an
accompanying clang commit for frontend testcases. I'll attach the
testcase upgrade script I used to PR21433 to help out-of-tree
frontends/backends.
This changes the schema for `DebugLoc` and `DILocation` from:
!{i32 3, i32 7, !7, !8}
to:
!MDLocation(line: 3, column: 7, scope: !7, inlinedAt: !8)
Note that empty fields (line/column: 0 and inlinedAt: null) don't get
printed by the assembly writer.
llvm-svn: 226048
Diffstat (limited to 'llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll')
-rw-r--r-- | llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll b/llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll index 2af4fe74660..0d562223b8c 100644 --- a/llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll +++ b/llvm/test/DebugInfo/X86/dbg-merge-loc-entry.ll @@ -55,19 +55,19 @@ declare %0 @llvm.uadd.with.overflow.i64(i64, i64) nounwind readnone !12 = !{!"0x16\00TItype\00160\000\000\000\000", !30, !6, !13} ; [ DW_TAG_typedef ] !13 = !{!"0x24\00\000\00128\00128\000\000\005", !29, !1} ; [ DW_TAG_base_type ] !14 = !{!"0x101\00u\001093\000", !9, !1, !12} ; [ DW_TAG_arg_variable ] -!15 = !{i32 1093, i32 0, !9, null} +!15 = !MDLocation(line: 1093, scope: !9) !16 = !{i64 0} !17 = !{!"0x100\00c\001095\000", !18, !1, !19} ; [ DW_TAG_auto_variable ] !18 = !{!"0xb\001094\000\0013", !29, !9} ; [ DW_TAG_lexical_block ] !19 = !{!"0x16\00word_type\00424\000\000\000\000", !30, !6, !20} ; [ DW_TAG_typedef ] !20 = !{!"0x24\00long int\000\0064\0064\000\000\005", !29, !1} ; [ DW_TAG_base_type ] -!21 = !{i32 1095, i32 0, !18, null} -!22 = !{i32 1103, i32 0, !18, null} -!23 = !{i32 1104, i32 0, !18, null} -!24 = !{i32 1003, i32 0, !25, !26} +!21 = !MDLocation(line: 1095, scope: !18) +!22 = !MDLocation(line: 1103, scope: !18) +!23 = !MDLocation(line: 1104, scope: !18) +!24 = !MDLocation(line: 1003, scope: !25, inlinedAt: !26) !25 = !{!"0xb\00879\000\000", !29, !0} ; [ DW_TAG_lexical_block ] -!26 = !{i32 1107, i32 0, !18, null} -!27 = !{i32 1111, i32 0, !18, null} +!26 = !MDLocation(line: 1107, scope: !18) +!27 = !MDLocation(line: 1111, scope: !18) !28 = !{!0, !9} !29 = !{!"foobar.c", !"/tmp"} !30 = !{!"foobar.h", !"/tmp"} |