summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-09-15 17:19:16 +0000
committerReid Kleckner <reid@kleckner.net>2014-09-15 17:19:16 +0000
commit8f45c9cc6232e5b841bc92b7f2ea9a792574c317 (patch)
treeca02cb3bb22061ee5df66fe47f1130b37e010f63 /clang/lib/Frontend/CompilerInvocation.cpp
parent49dd4283edb8a86dd7166060802dfaf946f96c6c (diff)
downloadbcm5719-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/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index a8bb13181dc..0dde41acf2e 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1431,6 +1431,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
Opts.ObjCExceptions = Args.hasArg(OPT_fobjc_exceptions);
Opts.CXXExceptions = Args.hasArg(OPT_fcxx_exceptions);
Opts.SjLjExceptions = Args.hasArg(OPT_fsjlj_exceptions);
+ Opts.SEHExceptions = Args.hasArg(OPT_fseh_exceptions);
Opts.TraditionalCPP = Args.hasArg(OPT_traditional_cpp);
Opts.RTTI = !Args.hasArg(OPT_fno_rtti);
OpenPOWER on IntegriCloud