diff options
| author | Robert Widmann <devteam.codafi@gmail.com> | 2018-09-28 15:35:18 +0000 |
|---|---|---|
| committer | Robert Widmann <devteam.codafi@gmail.com> | 2018-09-28 15:35:18 +0000 |
| commit | 9cba4eced8496409c6bf61ffefebeeed08e91282 (patch) | |
| tree | 455c82b90bdd0ec572098b86e7ef8eaa6ddb16ca /llvm/test/Bindings | |
| parent | 242f90fe82ef60e7dc4629961f7c732ccf5e69f8 (diff) | |
| download | bcm5719-llvm-9cba4eced8496409c6bf61ffefebeeed08e91282.tar.gz bcm5719-llvm-9cba4eced8496409c6bf61ffefebeeed08e91282.zip | |
[LLVM-C] Add more debug information accessors to GlobalObject and Instruction
Summary: Adds missing debug information accessors to GlobalObject. This puts the finishing touches on cloning debug info in the echo tests.
Reviewers: whitequark, deadalnix
Reviewed By: whitequark
Subscribers: aprantl, JDevlieghere, llvm-commits, harlanhaskins
Differential Revision: https://reviews.llvm.org/D51522
llvm-svn: 343330
Diffstat (limited to 'llvm/test/Bindings')
| -rw-r--r-- | llvm/test/Bindings/llvm-c/echo.ll | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/llvm/test/Bindings/llvm-c/echo.ll b/llvm/test/Bindings/llvm-c/echo.ll index 3bc0ef7a100..580293b3d04 100644 --- a/llvm/test/Bindings/llvm-c/echo.ll +++ b/llvm/test/Bindings/llvm-c/echo.ll @@ -166,11 +166,22 @@ exit: ret void } -!llvm.module.flags = !{!0} -!named = !{!1, !2, !3} - -!0 = !{i32 2, !"Debug Info Version", i32 3} -!1 = distinct !{} -!2 = distinct !{} -!3 = !{!4} -!4 = distinct !{} +define void @with_debuginfo() !dbg !4 { + ret void, !dbg !7 +} + +!llvm.dbg.cu = !{!0, !2} +!llvm.module.flags = !{!3} + +!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug) +!1 = !DIFile(filename: "echo.ll", directory: "/llvm/test/Bindings/llvm-c/echo.ll") +!2 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug) +!3 = !{i32 2, !"Debug Info Version", i32 3} +!4 = distinct !DISubprogram(name: "with_debuginfo", linkageName: "_with_debuginfo", scope: null, file: !1, line: 42, type: !5, isLocal: false, isDefinition: true, scopeLine: 1519, flags: DIFlagPrototyped, isOptimized: true, unit: !0, templateParams: !6, retainedNodes: !6) +!5 = !DISubroutineType(types: !6) +!6 = !{} +!7 = !DILocation(line: 42, scope: !8, inlinedAt: !11) +!8 = distinct !DILexicalBlock(scope: !9, file: !1, line: 42, column: 12) +!9 = distinct !DISubprogram(name: "fake_inlined_block", linkageName: "_fake_inlined_block", scope: null, file: !1, line: 82, type: !5, isLocal: false, isDefinition: true, scopeLine: 82, flags: DIFlagPrototyped, isOptimized: true, unit: !2, templateParams: !6, retainedNodes: !6) +!10 = distinct !DILocation(line: 84, scope: !8, inlinedAt: !11) +!11 = !DILocation(line: 42, scope: !4) |

