Consolidated @try and @synchronize into a single
code gen. method.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59767 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp
index c2e42d5..4739efa 100644
--- a/lib/CodeGen/CGObjC.cpp
+++ b/lib/CodeGen/CGObjC.cpp
@@ -524,7 +524,7 @@
 
 void CodeGenFunction::EmitObjCAtTryStmt(const ObjCAtTryStmt &S)
 {
-  CGM.getObjCRuntime().EmitTryStmt(*this, S);
+  CGM.getObjCRuntime().EmitTryOrSynchronizedStmt(*this, S);
 }
 
 void CodeGenFunction::EmitObjCAtThrowStmt(const ObjCAtThrowStmt &S)
@@ -535,7 +535,7 @@
 void CodeGenFunction::EmitObjCAtSynchronizedStmt(
                                               const ObjCAtSynchronizedStmt &S)
 {
-  CGM.getObjCRuntime().EmitSynchronizedStmt(*this, S);
+  CGM.getObjCRuntime().EmitTryOrSynchronizedStmt(*this, S);
 }
 
 CGObjCRuntime::~CGObjCRuntime() {}