summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ScalarRepl
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-14 22:27:36 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-14 22:27:36 +0000
commit9885469922266d43622af58871253fadfef42d48 (patch)
treefc06d29b0e8d1b751e25e109086ba0fcfc1ef842 /llvm/test/Transforms/ScalarRepl
parent96a319588a752c0254f8b214c2454a95855bcac4 (diff)
downloadbcm5719-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/Transforms/ScalarRepl')
-rw-r--r--llvm/test/Transforms/ScalarRepl/debuginfo-preserved.ll14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/test/Transforms/ScalarRepl/debuginfo-preserved.ll b/llvm/test/Transforms/ScalarRepl/debuginfo-preserved.ll
index 9514f2e9759..b0c459e21b1 100644
--- a/llvm/test/Transforms/ScalarRepl/debuginfo-preserved.ll
+++ b/llvm/test/Transforms/ScalarRepl/debuginfo-preserved.ll
@@ -49,16 +49,16 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
!4 = !{!5}
!5 = !{!"0x24\00int\000\0032\0032\000\000\005", null, !0} ; [ DW_TAG_base_type ]
!6 = !{!"0x101\00a\0016777217\000", !1, !2, !5} ; [ DW_TAG_arg_variable ]
-!7 = !{i32 1, i32 11, !1, null}
+!7 = !MDLocation(line: 1, column: 11, scope: !1)
!8 = !{!"0x101\00b\0033554433\000", !1, !2, !5} ; [ DW_TAG_arg_variable ]
-!9 = !{i32 1, i32 18, !1, null}
+!9 = !MDLocation(line: 1, column: 18, scope: !1)
!10 = !{!"0x100\00c\002\000", !11, !2, !5} ; [ DW_TAG_auto_variable ]
!11 = !{!"0xb\001\0021\000", !18, !1} ; [ DW_TAG_lexical_block ]
-!12 = !{i32 2, i32 9, !11, null}
-!13 = !{i32 2, i32 14, !11, null}
-!14 = !{i32 3, i32 5, !11, null}
-!15 = !{i32 4, i32 5, !11, null}
-!16 = !{i32 5, i32 5, !11, null}
+!12 = !MDLocation(line: 2, column: 9, scope: !11)
+!13 = !MDLocation(line: 2, column: 14, scope: !11)
+!14 = !MDLocation(line: 3, column: 5, scope: !11)
+!15 = !MDLocation(line: 4, column: 5, scope: !11)
+!16 = !MDLocation(line: 5, column: 5, scope: !11)
!17 = !{!1}
!18 = !{!"/d/j/debug-test.c", !"/Volumes/Data/b"}
!19 = !{i32 0}
OpenPOWER on IntegriCloud