forked from OSchip/llvm-project
ARMv7k: simplify logic for deciding sjlj-exceptions.
Slight change of behaviour in the odd armv7+watchos case, which should match the other runtime components. llvm-svn: 258994
This commit is contained in:
parent
e257f0f671
commit
4c9ac7d7df
clang
|
@ -1076,8 +1076,7 @@ bool Darwin::UseSjLjExceptions(const ArgList &Args) const {
|
||||||
|
|
||||||
// Only watchOS uses the new DWARF/Compact unwinding method.
|
// Only watchOS uses the new DWARF/Compact unwinding method.
|
||||||
llvm::Triple Triple(ComputeLLVMTriple(Args));
|
llvm::Triple Triple(ComputeLLVMTriple(Args));
|
||||||
return !(Triple.getArchName() == "armv7k" ||
|
return !Triple.isWatchABI();
|
||||||
Triple.getArchName() == "thumbv7k") && !isTargetWatchOS();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MachO::isPICDefault() const { return true; }
|
bool MachO::isPICDefault() const { return true; }
|
||||||
|
|
|
@ -9,3 +9,6 @@
|
||||||
// match.
|
// match.
|
||||||
|
|
||||||
// RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -miphoneos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s
|
// RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7k -miphoneos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s
|
||||||
|
|
||||||
|
// RUN: %clang -target x86_64-apple-macosx10.9 -arch armv7 -mwatchos-version-min=9.0 -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SJLJ
|
||||||
|
// CHECK-SJLJ: "-fsjlj-exceptions"
|
||||||
|
|
Loading…
Reference in New Issue