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:
|
public:
|
||||||
CGDebugInfo(CodeGenModule &CGM);
|
CGDebugInfo(CodeGenModule &CGM);
|
||||||
~CGDebugInfo();
|
~CGDebugInfo();
|
||||||
|
void finalize() { DBuilder.finalize(); }
|
||||||
|
|
||||||
/// setLocation - Update the current source location. If \arg loc is
|
/// setLocation - Update the current source location. If \arg loc is
|
||||||
/// invalid it is ignored.
|
/// invalid it is ignored.
|
||||||
|
|
|
@ -125,6 +125,8 @@ void CodeGenModule::createObjCRuntime() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CodeGenModule::Release() {
|
void CodeGenModule::Release() {
|
||||||
|
if (DebugInfo)
|
||||||
|
DebugInfo->finalize();
|
||||||
EmitDeferred();
|
EmitDeferred();
|
||||||
EmitCXXGlobalInitFunc();
|
EmitCXXGlobalInitFunc();
|
||||||
EmitCXXGlobalDtorFunc();
|
EmitCXXGlobalDtorFunc();
|
||||||
|
|
Loading…
Reference in New Issue