diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-20 22:40:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-20 22:40:55 +0000 |
commit | 32b14f80c27f86e6d146cf711db5bedda69e831c (patch) | |
tree | 1191dba5d8474ea10442ade1cb47964ec4ba28b1 /lib/MC | |
parent | a896f2bddbd51717b15dd13bb1b0ec78081fb04c (diff) | |
download | llvm-32b14f80c27f86e6d146cf711db5bedda69e831c.tar.gz llvm-32b14f80c27f86e6d146cf711db5bedda69e831c.tar.bz2 llvm-32b14f80c27f86e6d146cf711db5bedda69e831c.tar.xz |
Use compact unwind for the iOS simulator.
Another step in fixing pr19185.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCObjectFileInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp index ebc67acf4c..971b1a6e40 100644 --- a/lib/MC/MCObjectFileInfo.cpp +++ b/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; } |