mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 19:44:38 +08:00
Finalize debug info after all deferred globals are emitted.
llvm-svn: 137750
This commit is contained in:
@@ -125,8 +125,6 @@ void CodeGenModule::createObjCRuntime() {
|
||||
}
|
||||
|
||||
void CodeGenModule::Release() {
|
||||
if (DebugInfo)
|
||||
DebugInfo->finalize();
|
||||
EmitDeferred();
|
||||
EmitCXXGlobalInitFunc();
|
||||
EmitCXXGlobalDtorFunc();
|
||||
@@ -145,6 +143,9 @@ void CodeGenModule::Release() {
|
||||
|
||||
if (getCodeGenOpts().EmitGcovArcs || getCodeGenOpts().EmitGcovNotes)
|
||||
EmitCoverageFile();
|
||||
|
||||
if (DebugInfo)
|
||||
DebugInfo->finalize();
|
||||
}
|
||||
|
||||
void CodeGenModule::UpdateCompletedType(const TagDecl *TD) {
|
||||
|
||||
Reference in New Issue
Block a user