Use compact unwind for the iOS simulator.
[oota-llvm.git] / lib / MC / MCObjectFileInfo.cpp
index ebc67acf4cc3c9ca128499ee11bafef45332b5a7..971b1a6e40b5b53ad4f8610d1e040b7d6fc0dbc0 100644 (file)
@@ -31,6 +31,11 @@ static bool useCompactUnwind(const Triple &T) {
   if (T.isMacOSX() && !T.isMacOSXVersionLT(10, 6))
     return true;
 
+  // And the iOS simulator.
+  if (T.isiOS() &&
+      (T.getArch() == Triple::x86_64 || T.getArch() == Triple::x86))
+    return true;
+
   return false;
 }