[cfe-commits] r137674 - in /cfe/trunk/lib/CodeGen: CGDebugInfo.h CodeGenModule.cpp
Devang Patel
dpatel at apple.com
Mon Aug 15 16:01:55 PDT 2011
Author: dpatel
Date: Mon Aug 15 18:01:55 2011
New Revision: 137674
URL: http://llvm.org/viewvc/llvm-project?rev=137674&view=rev
Log:
Use new DIBuilder::finalize() at the end to wrap up debug info encoding for a translation unit.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.h
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.h?rev=137674&r1=137673&r2=137674&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.h (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.h Mon Aug 15 18:01:55 2011
@@ -152,6 +152,7 @@
public:
CGDebugInfo(CodeGenModule &CGM);
~CGDebugInfo();
+ void finalize() { DBuilder.finalize(); }
/// setLocation - Update the current source location. If \arg loc is
/// invalid it is ignored.
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=137674&r1=137673&r2=137674&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Mon Aug 15 18:01:55 2011
@@ -125,6 +125,8 @@
}
void CodeGenModule::Release() {
+ if (DebugInfo)
+ DebugInfo->finalize();
EmitDeferred();
EmitCXXGlobalInitFunc();
EmitCXXGlobalDtorFunc();
More information about the cfe-commits
mailing list