From 0bdb1fd4775648d63033ba20cdaf90fd34f8ce3d Mon Sep 17 00:00:00 2001 From: John McCall Date: Thu, 16 Sep 2010 06:16:50 +0000 Subject: Opportunistically use the C++ personality function in ObjC++ translation units that don't catch ObjC types. rdar://problem/8434851 llvm-svn: 114070 --- 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 173fbf4..f5ba76c 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -110,6 +110,8 @@ void CodeGenModule::Release() { EmitAnnotations(); EmitLLVMUsed(); + SimplifyPersonality(); + if (getCodeGenOpts().EmitDeclMetadata) EmitDeclMetadata(); } -- cgit v1.1