From c3510c74f7f93cc8c20cf1f2e2e3b49af3ddf06e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 20 Jun 2014 22:40:55 +0000 Subject: Use compact unwind for the iOS simulator. Another step in fixing pr19185. llvm-svn: 211416 --- llvm/lib/MC/MCObjectFileInfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp') diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index ebc67acf4cc..971b1a6e40b 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -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; } -- cgit v1.2.3