Use new DIBuilder::finalize() at the end to wrap up debug info encoding for a translation unit.

llvm-svn: 137674
This commit is contained in:
Devang Patel 2011-08-15 23:01:55 +00:00
parent 2b8acaf4f3
commit e24d324762
2 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,7 @@ class CGDebugInfo {
public:
CGDebugInfo(CodeGenModule &CGM);
~CGDebugInfo();
void finalize() { DBuilder.finalize(); }
/// setLocation - Update the current source location. If \arg loc is
/// invalid it is ignored.

View File

@ -125,6 +125,8 @@ void CodeGenModule::createObjCRuntime() {
}
void CodeGenModule::Release() {
if (DebugInfo)
DebugInfo->finalize();
EmitDeferred();
EmitCXXGlobalInitFunc();
EmitCXXGlobalDtorFunc();