From 4111feff7ccefee4efda8832eb14a9e64b2ffc1a Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 15 Aug 2011 23:01:55 +0000 Subject: Use new DIBuilder::finalize() at the end to wrap up debug info encoding for a translation unit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137674 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CodeGenModule.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/CodeGen/CodeGenModule.cpp') 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(); -- cgit v1.2.3-70-g09d2