r227616 - Windows: Fix _CPPUNWIND definition to follow -fcxx-exceptions

Reid Kleckner reid at kleckner.net
Fri Jan 30 13:42:56 PST 2015


Author: rnk
Date: Fri Jan 30 15:42:55 2015
New Revision: 227616

URL: http://llvm.org/viewvc/llvm-project?rev=227616&view=rev
Log:
Windows: Fix _CPPUNWIND definition to follow -fcxx-exceptions

This is consistent with how we interpret the MSVC /EH flag, which
controls -fcxx-exceptions.

Modified:
    cfe/trunk/lib/Basic/Targets.cpp

Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=227616&r1=227615&r2=227616&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Fri Jan 30 15:42:55 2015
@@ -600,7 +600,7 @@ protected:
       if (Opts.RTTIData)
         Builder.defineMacro("_CPPRTTI");
 
-      if (Opts.Exceptions)
+      if (Opts.CXXExceptions)
         Builder.defineMacro("_CPPUNWIND");
     }
 





More information about the cfe-commits mailing list