summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-19 00:51:58 +0000
committerEric Christopher <echristo@gmail.com>2013-07-19 00:51:58 +0000
commit978c8393156b94317ba195b7ff5880fde6327020 (patch)
tree03072a9afae9760085e8c66eed85dce34eb4ac8f /clang/lib/CodeGen/CGDebugInfo.cpp
parent03b3e1118fc02491252deda12ecabb4b1b75409d (diff)
downloadbcm5719-llvm-978c8393156b94317ba195b7ff5880fde6327020.tar.gz
bcm5719-llvm-978c8393156b94317ba195b7ff5880fde6327020.zip
Update createCompileUnit call for llvm changes.
llvm-svn: 186638
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index b6cf2f91460..feed2b48afc 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -386,12 +386,11 @@ void CGDebugInfo::CreateCompileUnit() {
RuntimeVers = LO.ObjCRuntime.isNonFragile() ? 2 : 1;
// Create new compile unit.
- DBuilder.createCompileUnit(LangTag, Filename, getCurrentDirname(),
- Producer, LO.Optimize,
- CGM.getCodeGenOpts().DwarfDebugFlags,
- RuntimeVers, SplitDwarfFilename);
// FIXME - Eliminate TheCU.
- TheCU = llvm::DICompileUnit(DBuilder.getCU());
+ TheCU = DBuilder.createCompileUnit(LangTag, Filename, getCurrentDirname(),
+ Producer, LO.Optimize,
+ CGM.getCodeGenOpts().DwarfDebugFlags,
+ RuntimeVers, SplitDwarfFilename);
}
/// CreateType - Get the Basic type from the cache or create a new
OpenPOWER on IntegriCloud