summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets/OSTargets.cpp
diff options
context:
space:
mode:
authorMartell Malone <martellmalone@gmail.com>2017-11-29 06:51:27 +0000
committerMartell Malone <martellmalone@gmail.com>2017-11-29 06:51:27 +0000
commit2fa25706ed4bfd4184e15f38657636ff94e35745 (patch)
treee1fb3f2f2e4f3e17cee504da8d9c73ade56bdf5a /clang/lib/Basic/Targets/OSTargets.cpp
parent390cfcb0b1df73b7b2a13e02f63dff46e8fe09cd (diff)
downloadbcm5719-llvm-2fa25706ed4bfd4184e15f38657636ff94e35745.tar.gz
bcm5719-llvm-2fa25706ed4bfd4184e15f38657636ff94e35745.zip
Revert "Toolchain: Normalize dwarf, sjlj and seh eh"
This reverts rL319294. The windows sanitizer does not like seh on x86. Will re apply with None type for x86 llvm-svn: 319295
Diffstat (limited to 'clang/lib/Basic/Targets/OSTargets.cpp')
-rw-r--r--clang/lib/Basic/Targets/OSTargets.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Basic/Targets/OSTargets.cpp b/clang/lib/Basic/Targets/OSTargets.cpp
index 50abd4ce0c8..b01e682e64d 100644
--- a/clang/lib/Basic/Targets/OSTargets.cpp
+++ b/clang/lib/Basic/Targets/OSTargets.cpp
@@ -133,6 +133,10 @@ void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts,
if (Triple.isOSDarwin())
Builder.defineMacro("__MACH__");
+ // The Watch ABI uses Dwarf EH.
+ if (Triple.isWatchABI())
+ Builder.defineMacro("__ARM_DWARF_EH__");
+
PlatformMinVersion = VersionTuple(Maj, Min, Rev);
}
} // namespace targets
OpenPOWER on IntegriCloud