]> granicus.if.org Git - clang/commit
ARM: fix mismatch between Clang and backend on exception type.
authorTim Northover <tnorthover@apple.com>
Tue, 17 Nov 2015 18:27:27 +0000 (18:27 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 17 Nov 2015 18:27:27 +0000 (18:27 +0000)
commitb149f9998c8120fd0ceec9d3eb0bec47654c1c74
tree9a7ca06060f2e001d422b3f1258d8174525f7888
parent5417ea0ce86302c17c0accb2db2f79433524a7b5
ARM: fix mismatch between Clang and backend on exception type.

"-arch armv7k" is only normally used with a watchos target, but Clang doesn't
stop you from giving a "-miphoneos-version-min" option too, converting the
triple to "thumbv7k-apple-ios". In this case the backend will decide to use
SjLj exceptions, so Clang needs to agree so it can create the correct
predefines.

Fortunately, there's a handy function to make the decision for us now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@253355 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains.cpp
test/Driver/arch-armv7k.c