aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorJon Roelofs <jonathan_roelofs@apple.com>2023-07-21 12:51:39 -0700
committerJon Roelofs <jonathan_roelofs@apple.com>2023-07-21 16:13:47 -0700
commit62a1fbe9f7f95210480e166b9e4eb02a1389f54d (patch)
tree2e1b2cc23d0a362cc3d8ce3ea35e4983ec914a0d /llvm/lib/MC/MCObjectFileInfo.cpp
parent785939c15e463a04514d50cda36bab1ee3febf97 (diff)
downloadllvm-62a1fbe9f7f95210480e166b9e4eb02a1389f54d.zip
llvm-62a1fbe9f7f95210480e166b9e4eb02a1389f54d.tar.gz
llvm-62a1fbe9f7f95210480e166b9e4eb02a1389f54d.tar.bz2
Enable compact unwind in all darwin simulators
... since they've always supported it. rdar://104359594 Differential revision: https://reviews.llvm.org/D155988
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index fbdb5a1..0b5109e 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -48,6 +48,10 @@ static bool useCompactUnwind(const Triple &T) {
if (T.isiOS() && T.isX86())
return true;
+ // The rest of the simulators always have it.
+ if (T.isSimulatorEnvironment())
+ return true;
+
return false;
}
@@ -62,7 +66,8 @@ void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
SectionKind::getReadOnly());
if (T.isOSDarwin() &&
- (T.getArch() == Triple::aarch64 || T.getArch() == Triple::aarch64_32))
+ (T.getArch() == Triple::aarch64 || T.getArch() == Triple::aarch64_32 ||
+ T.isSimulatorEnvironment()))
SupportsCompactUnwindWithoutEHFrame = true;
switch (Ctx->emitDwarfUnwindInfo()) {