From e24d3247625f52365b57daf93d040dc25daa0047 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. llvm-svn: 137674 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d5d3463..d442b09 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -125,6 +125,8 @@ void CodeGenModule::createObjCRuntime() { } void CodeGenModule::Release() { + if (DebugInfo) + DebugInfo->finalize(); EmitDeferred(); EmitCXXGlobalInitFunc(); EmitCXXGlobalDtorFunc(); -- cgit v1.1