diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 1 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index 09e4628f47..fdc3baf2f3 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -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. diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index d5d34634db..d442b097ab 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -125,6 +125,8 @@ void CodeGenModule::createObjCRuntime() { } void CodeGenModule::Release() { + if (DebugInfo) + DebugInfo->finalize(); EmitDeferred(); EmitCXXGlobalInitFunc(); EmitCXXGlobalDtorFunc(); |