Windows: Fix _CPPUNWIND definition to follow -fcxx-exceptions

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

llvm-svn: 227616
This commit is contained in:
Reid Kleckner 2015-01-30 21:42:55 +00:00
parent 2d80ea1939
commit 165143587a

View File

@ -600,7 +600,7 @@ protected:
if (Opts.RTTIData)
Builder.defineMacro("_CPPRTTI");
if (Opts.Exceptions)
if (Opts.CXXExceptions)
Builder.defineMacro("_CPPUNWIND");
}