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/op_deref.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/op_deref.ll')
-rw-r--r-- | llvm/test/DebugInfo/X86/op_deref.ll | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/test/DebugInfo/X86/op_deref.ll b/llvm/test/DebugInfo/X86/op_deref.ll index 1352a06089e..2aff5c2e8e0 100644 --- a/llvm/test/DebugInfo/X86/op_deref.ll +++ b/llvm/test/DebugInfo/X86/op_deref.ll @@ -89,23 +89,23 @@ declare void @llvm.stackrestore(i8*) nounwind !8 = !{null, !9} !9 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] !10 = !{!"0x101\00s\0016777217\000", !5, !6, !9} ; [ DW_TAG_arg_variable ] -!11 = !{i32 1, i32 26, !5, null} -!12 = !{i32 3, i32 13, !13, null} +!11 = !MDLocation(line: 1, column: 26, scope: !5) +!12 = !MDLocation(line: 3, column: 13, scope: !13) !13 = !{!"0xb\002\001\000", !28, !5} ; [ DW_TAG_lexical_block ] !14 = !{!"0x100\00vla\003\008192", !13, !6, !15} ; [ DW_TAG_auto_variable ] !15 = !{!"0x1\00\000\000\0032\000\000", null, null, !9, !16, i32 0, null, null, null} ; [ DW_TAG_array_type ] [line 0, size 0, align 32, offset 0] [from int] !16 = !{!17} !17 = !{!"0x21\000\00-1"} ; [ DW_TAG_subrange_type ] -!18 = !{i32 3, i32 7, !13, null} +!18 = !MDLocation(line: 3, column: 7, scope: !13) !19 = !{!"0x100\00i\004\000", !13, !6, !9} ; [ DW_TAG_auto_variable ] -!20 = !{i32 4, i32 7, !13, null} -!21 = !{i32 5, i32 8, !22, null} +!20 = !MDLocation(line: 4, column: 7, scope: !13) +!21 = !MDLocation(line: 5, column: 8, scope: !22) !22 = !{!"0xb\005\003\001", !28, !13} ; [ DW_TAG_lexical_block ] -!23 = !{i32 6, i32 5, !24, null} +!23 = !MDLocation(line: 6, column: 5, scope: !24) !24 = !{!"0xb\005\0027\002", !28, !22} ; [ DW_TAG_lexical_block ] -!25 = !{i32 7, i32 3, !24, null} -!26 = !{i32 5, i32 22, !22, null} -!27 = !{i32 8, i32 1, !13, null} +!25 = !MDLocation(line: 7, column: 3, scope: !24) +!26 = !MDLocation(line: 5, column: 22, scope: !22) +!27 = !MDLocation(line: 8, column: 1, scope: !13) !28 = !{!"bar.c", !"/Users/echristo/tmp"} !29 = !{i32 1, !"Debug Info Version", i32 2} !30 = !{!"0x102\006"} ; [ DW_TAG_expression ] [DW_OP_deref] |