Use compact unwind for the iOS simulator.
Another step in fixing pr19185.
llvm-svn: 211416
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index ebc67ac..971b1a6 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -31,6 +31,11 @@
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;
}