Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
Fix dwarf debug tests
Browse files Browse the repository at this point in the history
Test: cargo test  -p move-mv-llvm-compiler
  • Loading branch information
ksolana committed Mar 14, 2024
1 parent cbc9904 commit 466ded8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ entry:
declare ptr @move_native_signer_borrow_address(ptr)

!llvm.dbg.cu = !{!0}
!address_of = !{!2, !7, !8, !9}
!address_of = !{!2, !6, !7, !8}

!0 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !1, producer: "move-mv-llvm-compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, sysroot: "/")
!1 = !DIFile(filename: "signer.move", directory: "/language/move-stdlib/sources")
!2 = distinct !DISubprogram(name: "address_of", linkageName: "address_of", scope: !1, file: !1, line: 11, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0, retainedNodes: !6)
!2 = distinct !DISubprogram(name: "address_of", linkageName: "address_of", scope: !1, file: !1, line: 11, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0)
!3 = !DISubroutineType(types: !4)
!4 = !{!5}
!5 = !DIBasicType(tag: DW_TAG_unspecified_type, name: "unspecified type")
!6 = !{}
!7 = distinct !DILexicalBlock(scope: !2, file: !1, line: 10)
!8 = !DINamespace(name: "address_of", scope: !1)
!9 = !DILocation(line: 11, column: 4, scope: !7)
!6 = distinct !DILexicalBlock(scope: !2, file: !1, line: 10)
!7 = !DINamespace(name: "address_of", scope: !1)
!8 = !DILocation(line: 11, column: 4, scope: !6)
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ entry:

!0 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !1, producer: "move-mv-llvm-compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, sysroot: "/")
!1 = !DIFile(filename: "dwarf-struct-2-modules.move", directory: "/language/tools/move-mv-llvm-compiler/tests/dwarf-tests")
!2 = distinct !DISubprogram(name: "fun_1", linkageName: "fun_1", scope: !1, file: !1, line: 33, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0, retainedNodes: !4)
!2 = distinct !DISubprogram(name: "fun_1", linkageName: "fun_1", scope: !1, file: !1, line: 33, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0)
!3 = !DISubroutineType(types: !4)
!4 = !{}
!5 = distinct !DILexicalBlock(scope: !2, file: !1, line: 5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ declare %struct.M__MyStruct @"0000000000000101_M_fun_1_AcLtMspYikxikv"()

!0 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !1, producer: "move-mv-llvm-compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, sysroot: "/")
!1 = !DIFile(filename: "dwarf-struct-2-modules.move", directory: "/language/tools/move-mv-llvm-compiler/tests/dwarf-tests")
!2 = distinct !DISubprogram(name: "fun_2", linkageName: "fun_2", scope: !1, file: !1, line: 7, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0, retainedNodes: !4)
!2 = distinct !DISubprogram(name: "fun_2", linkageName: "fun_2", scope: !1, file: !1, line: 7, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0)
!3 = !DISubroutineType(types: !4)
!4 = !{}
!5 = distinct !DILexicalBlock(scope: !2, file: !1, line: 5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ entry:

!0 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !1, producer: "move-mv-llvm-compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, sysroot: "/")
!1 = !DIFile(filename: "dwarf-struct.move", directory: "/language/tools/move-mv-llvm-compiler/tests/dwarf-tests")
!2 = distinct !DISubprogram(name: "fun_1", linkageName: "fun_1", scope: !1, file: !1, line: 16, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0, retainedNodes: !4)
!2 = distinct !DISubprogram(name: "fun_1", linkageName: "fun_1", scope: !1, file: !1, line: 16, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0)
!3 = !DISubroutineType(types: !4)
!4 = !{}
!5 = distinct !DILexicalBlock(scope: !2, file: !1, line: 5)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ attributes #0 = { cold noreturn }

!0 = distinct !DICompileUnit(language: DW_LANG_Rust, file: !1, producer: "move-mv-llvm-compiler", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, sysroot: "/")
!1 = !DIFile(filename: "dwarf-vector.move", directory: "/language/tools/move-mv-llvm-compiler/tests/dwarf-tests")
!2 = distinct !DISubprogram(name: "test_singleton_contains", linkageName: "test_singleton_contains", scope: !1, file: !1, line: 17, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0, retainedNodes: !4)
!2 = distinct !DISubprogram(name: "test_singleton_contains", linkageName: "test_singleton_contains", scope: !1, file: !1, line: 17, type: !3, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0)
!3 = !DISubroutineType(types: !4)
!4 = !{}
!5 = distinct !DILexicalBlock(scope: !2, file: !1, line: 23)
Expand All @@ -222,13 +222,13 @@ attributes #0 = { cold noreturn }
!22 = !{!23}
!23 = !DIDerivedType(tag: DW_TAG_member, name: "foo", scope: !21, file: !1, line: 3, baseType: !9, size: 128, align: 64)
!24 = !DICompositeType(tag: DW_TAG_array_type, baseType: !20, size: 192, align: 8, flags: DIFlagVector, elements: !17)
!25 = distinct !DISubprogram(name: "singleton", linkageName: "singleton", scope: !1, file: !1, line: 11, type: !26, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0, retainedNodes: !4)
!25 = distinct !DISubprogram(name: "singleton", linkageName: "singleton", scope: !1, file: !1, line: 11, type: !26, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0)
!26 = !DISubroutineType(types: !27)
!27 = !{!9}
!28 = distinct !DILexicalBlock(scope: !25, file: !1, line: 9)
!29 = !DINamespace(name: "singleton", scope: !1)
!30 = !DILocation(line: 11, column: 4, scope: !28)
!31 = distinct !DISubprogram(name: "singleton", linkageName: "singleton", scope: !1, file: !1, line: 11, type: !32, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0, retainedNodes: !4)
!31 = distinct !DISubprogram(name: "singleton", linkageName: "singleton", scope: !1, file: !1, line: 11, type: !32, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition, unit: !0)
!32 = !DISubroutineType(types: !33)
!33 = !{!20}
!34 = distinct !DILexicalBlock(scope: !31, file: !1, line: 9)
Expand Down

0 comments on commit 466ded8

Please sign in to comment.