From 597293981dc4efc2584c8dba4d46cf8189ac1fc3 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Thu, 18 Feb 2016 08:15:05 +0000 Subject: [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 --- clang/lib/Driver/Tools.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'clang/lib/Driver/Tools.cpp') diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index 159936760a8..8441a91a637 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); -- cgit v1.2.3