From a017306063c847f08a14f8d3bf627dd19e6d79a2 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Mon, 4 Apr 2016 02:11:34 +0000 Subject: [DebugInfo] Fix tests in Assembler/ Each DISubprogram with isDefinition : true must belong to a compile unit. llvm-svn: 265281 --- llvm/test/Assembler/diimportedentity.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'llvm/test/Assembler/diimportedentity.ll') 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} -- cgit v1.2.3