summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/diimportedentity.ll
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-04-04 02:11:34 +0000
committerDavide Italiano <davide@freebsd.org>2016-04-04 02:11:34 +0000
commita017306063c847f08a14f8d3bf627dd19e6d79a2 (patch)
tree810854292565f3b7921d17c102b1e6c7855a402e /llvm/test/Assembler/diimportedentity.ll
parentd5edbd61a15b5416b9d10dbb4cb058a7493af75d (diff)
downloadbcm5719-llvm-a017306063c847f08a14f8d3bf627dd19e6d79a2.tar.gz
bcm5719-llvm-a017306063c847f08a14f8d3bf627dd19e6d79a2.zip
[DebugInfo] Fix tests in Assembler/
Each DISubprogram with isDefinition : true must belong to a compile unit. llvm-svn: 265281
Diffstat (limited to 'llvm/test/Assembler/diimportedentity.ll')
-rw-r--r--llvm/test/Assembler/diimportedentity.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Assembler/diimportedentity.ll b/llvm/test/Assembler/diimportedentity.ll
index 334eb20daed..98c147ad7c7 100644
--- a/llvm/test/Assembler/diimportedentity.ll
+++ b/llvm/test/Assembler/diimportedentity.ll
@@ -4,6 +4,9 @@
; CHECK: !named = !{!0, !1, !2, !3, !3}
!named = !{!0, !1, !2, !3, !4}
+!llvm.module.flags = !{!7}
+!llvm.dbg.cu = !{!5}
+
; CHECK: !0 = distinct !DISubprogram({{.*}})
; CHECK-NEXT: !1 = !DICompositeType({{.*}})
!0 = distinct !DISubprogram(name: "foo")
@@ -18,3 +21,10 @@
!4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null,
line: 0)
+!5 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang",
+ file: !6,
+ isOptimized: true, flags: "-O2",
+ splitDebugFilename: "abc.debug", emissionKind: 2,
+ subprograms: !{!0})
+!6 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
+!7 = !{i32 2, !"Debug Info Version", i32 3}
OpenPOWER on IntegriCloud