From: Adrian Prantl Date: Thu, 31 Mar 2016 23:57:45 +0000 (+0000) Subject: Adapt to LLVM API change in r265077. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6cf094aca92155c37127ade001796a2831fd8a3;p=clang Adapt to LLVM API change in r265077. EmissionKind moved from DIBuilder to DICompileUnit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index e300ed538a..348fa7c2f9 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -403,8 +403,8 @@ void CGDebugInfo::CreateCompileUnit() { Producer, LO.Optimize, CGM.getCodeGenOpts().DwarfDebugFlags, RuntimeVers, CGM.getCodeGenOpts().SplitDwarfFile, DebugKind <= codegenoptions::DebugLineTablesOnly - ? llvm::DIBuilder::LineTablesOnly - : llvm::DIBuilder::FullDebug, + ? llvm::DICompileUnit::LineTablesOnly + : llvm::DICompileUnit::FullDebug, 0 /* DWOid */, DebugKind != codegenoptions::LocTrackingOnly); } @@ -1746,7 +1746,7 @@ CGDebugInfo::getOrCreateModuleRef(ExternalASTSource::ASTSourceDescriptor Mod, DIB.createCompileUnit(TheCU->getSourceLanguage(), Mod.getModuleName(), Mod.getPath(), TheCU->getProducer(), true, StringRef(), 0, Mod.getASTFile(), - llvm::DIBuilder::FullDebug, Signature); + llvm::DICompileUnit::FullDebug, Signature); DIB.finalize(); } llvm::DIModule *Parent = diff --git a/test/CodeGenCXX/debug-info-namespace.cpp b/test/CodeGenCXX/debug-info-namespace.cpp index 4933ae9674..bebb24ab5d 100644 --- a/test/CodeGenCXX/debug-info-namespace.cpp +++ b/test/CodeGenCXX/debug-info-namespace.cpp @@ -103,7 +103,7 @@ void B::func_fwd() {} // CHECK: [[M17]] = !DIImportedEntity(tag: DW_TAG_imported_declaration, scope: [[CTXT]], entity: [[I]] // CHECK-GMLT: [[CU:![0-9]+]] = distinct !DICompileUnit( -// CHECK-GMLT-SAME: emissionKind: 2, +// CHECK-GMLT-SAME: emissionKind: LineTablesOnly, // CHECK-GMLT-NOT: imports: // CHECK-NOLIMIT: !DICompositeType(tag: DW_TAG_structure_type, name: "bar",{{.*}} line: 6,