mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
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
This commit is contained in:
@@ -38,11 +38,11 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone
|
||||
!8 = !{!9, !9}
|
||||
!9 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ]
|
||||
!12 = !{!"0x101\00x\0016777221\000", !5, !6, !9} ; [ DW_TAG_arg_variable ]
|
||||
!13 = !{i32 5, i32 5, !5, null}
|
||||
!13 = !MDLocation(line: 5, column: 5, scope: !5)
|
||||
!14 = !{!"0x100\00y\008\000", !15, !6, !9} ; [ DW_TAG_auto_variable ]
|
||||
!15 = !{!"0xb\007\001\000", !19, !5} ; [ DW_TAG_lexical_block ]
|
||||
!16 = !{i32 8, i32 9, !15, null}
|
||||
!17 = !{i32 8, i32 18, !15, null}
|
||||
!18 = !{i32 9, i32 5, !15, null}
|
||||
!16 = !MDLocation(line: 8, column: 9, scope: !15)
|
||||
!17 = !MDLocation(line: 8, column: 18, scope: !15)
|
||||
!18 = !MDLocation(line: 9, column: 5, scope: !15)
|
||||
!19 = !{!"ending-run.c", !"/Users/echristo/tmp"}
|
||||
!20 = !{i32 1, !"Debug Info Version", i32 2}
|
||||
|
||||
Reference in New Issue
Block a user