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 | 37ac8d3622407cf5fd974407c5b8b301a2fdfcfd (patch) | |
tree | 63d9eadf7bbfd65d3a10a8e5c9e0f15f244f17e4 /test/JitListener | |
parent | de8202b0840dcd5c58b9d17d751ef9bf9215892c (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/JitListener')
-rw-r--r-- | test/JitListener/multiple.ll | 36 | ||||
-rw-r--r-- | test/JitListener/simple.ll | 6 |
2 files changed, 21 insertions, 21 deletions
diff --git a/test/JitListener/multiple.ll b/test/JitListener/multiple.ll index fa414146a60..ae5460802f3 100644 --- a/test/JitListener/multiple.ll +++ b/test/JitListener/multiple.ll @@ -142,26 +142,26 @@ attributes #1 = { nounwind readnone } !14 = !{!"clang version 3.6.0 (trunk)"} !15 = !{!"0x101\00a\0016777217\000", !4, !5, !8} ; [ DW_TAG_arg_variable ] [a] [line 1] !16 = !{!"0x102"} ; [ DW_TAG_expression ] -!17 = !{i32 1, i32 13, !4, null} -!18 = !{i32 2, i32 10, !4, null} -!19 = !{i32 2, i32 3, !4, null} +!17 = !MDLocation(line: 1, column: 13, scope: !4) +!18 = !MDLocation(line: 2, column: 10, scope: !4) +!19 = !MDLocation(line: 2, column: 3, scope: !4) !20 = !{!"0x101\00a\0016777221\000", !9, !5, !8} ; [ DW_TAG_arg_variable ] [a] [line 5] -!21 = !{i32 5, i32 13, !9, null} -!22 = !{i32 6, i32 7, !23, null} +!21 = !MDLocation(line: 5, column: 13, scope: !9) +!22 = !MDLocation(line: 6, column: 7, scope: !23) !23 = !{!"0xb\006\007\000", !1, !9} ; [ DW_TAG_lexical_block ] [F:\users\akaylor\llvm-s\llvm\test\JitListener/multiple.c] -!24 = !{i32 6, i32 7, !9, null} -!25 = !{i32 7, i32 5, !26, null} +!24 = !MDLocation(line: 6, column: 7, scope: !9) +!25 = !MDLocation(line: 7, column: 5, scope: !26) !26 = !{!"0xb\006\0015\001", !1, !23} ; [ DW_TAG_lexical_block ] [F:\users\akaylor\llvm-s\llvm\test\JitListener/multiple.c] -!27 = !{i32 9, i32 14, !9, null} -!28 = !{i32 9, i32 10, !9, null} -!29 = !{i32 9, i32 3, !9, null} -!30 = !{i32 10, i32 1, !9, null} +!27 = !MDLocation(line: 9, column: 14, scope: !9) +!28 = !MDLocation(line: 9, column: 10, scope: !9) +!29 = !MDLocation(line: 9, column: 3, scope: !9) +!30 = !MDLocation(line: 10, column: 1, scope: !9) !31 = !{!"0x101\00a\0016777228\000", !10, !5, !8} ; [ DW_TAG_arg_variable ] [a] [line 12] -!32 = !{i32 12, i32 15, !10, null} -!33 = !{i32 13, i32 11, !10, null} -!34 = !{i32 13, i32 3, !10, null} -!35 = !{i32 15, i32 7, !36, null} +!32 = !MDLocation(line: 12, column: 15, scope: !10) +!33 = !MDLocation(line: 13, column: 11, scope: !10) +!34 = !MDLocation(line: 13, column: 3, scope: !10) +!35 = !MDLocation(line: 15, column: 7, scope: !36) !36 = !{!"0xb\0013\0014\002", !1, !10} ; [ DW_TAG_lexical_block ] [F:\users\akaylor\llvm-s\llvm\test\JitListener/multiple.c] -!37 = !{i32 17, i32 7, !36, null} -!38 = !{i32 19, i32 7, !36, null} -!39 = !{i32 21, i32 1, !10, null} +!37 = !MDLocation(line: 17, column: 7, scope: !36) +!38 = !MDLocation(line: 19, column: 7, scope: !36) +!39 = !MDLocation(line: 21, column: 1, scope: !10) diff --git a/test/JitListener/simple.ll b/test/JitListener/simple.ll index 09e17fcee80..1732170a965 100644 --- a/test/JitListener/simple.ll +++ b/test/JitListener/simple.ll @@ -49,6 +49,6 @@ attributes #1 = { nounwind readnone } !11 = !{!"clang version 3.6.0 (trunk)"} !12 = !{!"0x101\00a\0016777217\000", !4, !5, !8} ; [ DW_TAG_arg_variable ] [a] [line 1] !13 = !{!"0x102"} ; [ DW_TAG_expression ] -!14 = !{i32 1, i32 13, !4, null} -!15 = !{i32 2, i32 10, !4, null} -!16 = !{i32 2, i32 3, !4, null} +!14 = !MDLocation(line: 1, column: 13, scope: !4) +!15 = !MDLocation(line: 2, column: 10, scope: !4) +!16 = !MDLocation(line: 2, column: 3, scope: !4) |