summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-01-27 22:14:02 +0000
committerTim Northover <tnorthover@apple.com>2016-01-27 22:14:02 +0000
commit4c9ac7d7df7668773cfe621c3711a8aacbb5760b (patch)
tree50289eccf55c410793839310adc40bf7af3db007 /clang/lib
parente257f0f671920dc6def02fe85c57ea2d795cf911 (diff)
downloadbcm5719-llvm-4c9ac7d7df7668773cfe621c3711a8aacbb5760b.tar.gz
bcm5719-llvm-4c9ac7d7df7668773cfe621c3711a8aacbb5760b.zip
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
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Driver/ToolChains.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 4f72a96ace2..45cd8bdb29c 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -1076,8 +1076,7 @@ bool Darwin::UseSjLjExceptions(const ArgList &Args) const {
// Only watchOS uses the new DWARF/Compact unwinding method.
llvm::Triple Triple(ComputeLLVMTriple(Args));
- return !(Triple.getArchName() == "armv7k" ||
- Triple.getArchName() == "thumbv7k") && !isTargetWatchOS();
+ return !Triple.isWatchABI();
}
bool MachO::isPICDefault() const { return true; }
OpenPOWER on IntegriCloud