forked from OSchip/llvm-project
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:
parent
2b8acaf4f3
commit
e24d324762
|
@ -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.
|
||||
|
|
|
@ -125,6 +125,8 @@ void CodeGenModule::createObjCRuntime() {
|
|||
}
|
||||
|
||||
void CodeGenModule::Release() {
|
||||
if (DebugInfo)
|
||||
DebugInfo->finalize();
|
||||
EmitDeferred();
|
||||
EmitCXXGlobalInitFunc();
|
||||
EmitCXXGlobalDtorFunc();
|
||||
|
|
Loading…
Reference in New Issue