Opportunistically use the C++ personality function in ObjC++

translation units that don't catch ObjC types.  rdar://problem/8434851

llvm-svn: 114070
This commit is contained in:
John McCall
2010-09-16 06:16:50 +00:00
parent 0bd7a9345b
commit 0bdb1fd477
4 changed files with 105 additions and 19 deletions

View File

@@ -110,6 +110,8 @@ void CodeGenModule::Release() {
EmitAnnotations();
EmitLLVMUsed();
SimplifyPersonality();
if (getCodeGenOpts().EmitDeclMetadata)
EmitDeclMetadata();
}