summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-03-31 23:57:45 +0000
committerAdrian Prantl <aprantl@apple.com>2016-03-31 23:57:45 +0000
commit3563c55aa03fb24d7918de35578449ff0d1c4f3d (patch)
treec781bcf973f59364dbe24ece504a3586dc211c25 /clang/lib/CodeGen
parentb939a257070d71eee3c18415ca6104731c7923a6 (diff)
downloadbcm5719-llvm-3563c55aa03fb24d7918de35578449ff0d1c4f3d.tar.gz
bcm5719-llvm-3563c55aa03fb24d7918de35578449ff0d1c4f3d.zip
Adapt to LLVM API change in r265077.
EmissionKind moved from DIBuilder to DICompileUnit. <rdar://problem/25427165> llvm-svn: 265078
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index e300ed538ac..348fa7c2f96 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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 =
OpenPOWER on IntegriCloud