diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-02-18 08:15:05 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-18 08:15:05 +0000 |
commit | 597293981dc4efc2584c8dba4d46cf8189ac1fc3 (patch) | |
tree | 9863d2f680c547b3c9fe13a23b67c9ad46087d23 /clang/lib/Driver/Tools.cpp | |
parent | c1857d1d21c3c7ca3027d4e0cfaf3b2257421ca7 (diff) | |
download | llvm-597293981dc4efc2584c8dba4d46cf8189ac1fc3.zip llvm-597293981dc4efc2584c8dba4d46cf8189ac1fc3.tar.gz llvm-597293981dc4efc2584c8dba4d46cf8189ac1fc3.tar.bz2 |
[MSVC] Turn C++ EH on my default
Our support for C++ EH is sufficiently good that it makes sense to
enable support for it out of the box.
While we are here, update the MSVCCompatibility doc.
llvm-svn: 261195
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 1599367..8441a91 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -2410,11 +2410,9 @@ static void addExceptionArgs(const ArgList &Args, types::ID InputType, } if (types::isCXX(InputType)) { - // Disable C++ EH by default on XCore, PS4, and MSVC. - // FIXME: Remove MSVC from this list once things work. - bool CXXExceptionsEnabled = Triple.getArch() != llvm::Triple::xcore && - !Triple.isPS4CPU() && - !Triple.isWindowsMSVCEnvironment(); + // Disable C++ EH by default on XCore and PS4. + bool CXXExceptionsEnabled = + Triple.getArch() != llvm::Triple::xcore && !Triple.isPS4CPU(); Arg *ExceptionArg = Args.getLastArg( options::OPT_fcxx_exceptions, options::OPT_fno_cxx_exceptions, options::OPT_fexceptions, options::OPT_fno_exceptions); |