diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-09-15 17:19:16 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-09-15 17:19:16 +0000 |
commit | 8f45c9cc6232e5b841bc92b7f2ea9a792574c317 (patch) | |
tree | ca02cb3bb22061ee5df66fe47f1130b37e010f63 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 49dd4283edb8a86dd7166060802dfaf946f96c6c (diff) | |
download | bcm5719-llvm-8f45c9cc6232e5b841bc92b7f2ea9a792574c317.tar.gz bcm5719-llvm-8f45c9cc6232e5b841bc92b7f2ea9a792574c317.zip |
Add -fseh-exceptions for MinGW-w64
This adds a flag called -fseh-exceptions that uses the native Windows
.pdata and .xdata unwind mechanism to throw exceptions. The other EH
possibilities are DWARF and SJLJ exceptions.
Patch by Martell Malone!
Reviewed By: asl, rnk
Differential Revision: http://reviews.llvm.org/D3419
llvm-svn: 217790
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index d691d19730b..daff9ce9114 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -556,6 +556,8 @@ static void InitializePredefinedMacros(const TargetInfo &TI, Builder.defineMacro("__GXX_RTTI"); if (LangOpts.SjLjExceptions) Builder.defineMacro("__USING_SJLJ_EXCEPTIONS__"); + if (LangOpts.SEHExceptions) + Builder.defineMacro("__SEH__"); if (LangOpts.Deprecated) Builder.defineMacro("__DEPRECATED"); |