[cfe-commits] r137750 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Devang Patel dpatel at apple.com
Tue Aug 16 13:58:22 PDT 2011


Author: dpatel
Date: Tue Aug 16 15:58:22 2011
New Revision: 137750

URL: http://llvm.org/viewvc/llvm-project?rev=137750&view=rev
Log:
Finalize debug info after all deferred globals are emitted.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenModule.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=137750&r1=137749&r2=137750&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Tue Aug 16 15:58:22 2011
@@ -125,8 +125,6 @@
 }
 
 void CodeGenModule::Release() {
-  if (DebugInfo)
-    DebugInfo->finalize();
   EmitDeferred();
   EmitCXXGlobalInitFunc();
   EmitCXXGlobalDtorFunc();
@@ -145,6 +143,9 @@
 
   if (getCodeGenOpts().EmitGcovArcs || getCodeGenOpts().EmitGcovNotes)
     EmitCoverageFile();
+
+  if (DebugInfo)
+    DebugInfo->finalize();
 }
 
 void CodeGenModule::UpdateCompletedType(const TagDecl *TD) {





More information about the cfe-commits mailing list