The ARM stuff already calls the Resume function, not the Resume_or_Rethrow. It
[oota-llvm.git] / lib / CodeGen / DwarfEHPrepare.cpp
index 873ddd20b8c5be7e6041779d81ecd9005971e078..22c5465bf9fa0678b05b2d8380736743836a899c 100644 (file)
@@ -252,10 +252,7 @@ bool DwarfEHPrepare::HandleURoRInvokes() {
 
   if (!URoR) {
     URoR = F->getParent()->getFunction("_Unwind_Resume_or_Rethrow");
-    if (!URoR) {
-      URoR = F->getParent()->getFunction("_Unwind_SjLj_Resume");
-      if (!URoR) return CleanupSelectors(CatchAllSels);
-    }
+    if (!URoR) return CleanupSelectors(CatchAllSels);
   }
 
   SmallPtrSet<InvokeInst*, 32> URoRInvokes;