Rename LangOptions::Microsoft to LangOptions::MicrosoftExt to make it clear that this flag must be used only for Microsoft extensions and not emulation; to avoid confusion with the new LangOptions::MicrosoftMode flag.
Many of the code now under LangOptions::MicrosoftExt will eventually be moved under the LangOptions::MicrosoftMode flag. llvm-svn: 139987
This commit is contained in:
@@ -344,7 +344,7 @@ static void InitializeStandardPredefinedMacros(const TargetInfo &TI,
|
||||
const LangOptions &LangOpts,
|
||||
const FrontendOptions &FEOpts,
|
||||
MacroBuilder &Builder) {
|
||||
if (!LangOpts.Microsoft && !LangOpts.TraditionalCPP)
|
||||
if (!LangOpts.MicrosoftExt && !LangOpts.TraditionalCPP)
|
||||
Builder.defineMacro("__STDC__");
|
||||
if (LangOpts.Freestanding)
|
||||
Builder.defineMacro("__STDC_HOSTED__", "0");
|
||||
@@ -470,7 +470,7 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
|
||||
Builder.defineMacro("__private_extern__", "extern");
|
||||
}
|
||||
|
||||
if (LangOpts.Microsoft) {
|
||||
if (LangOpts.MicrosoftExt) {
|
||||
// Both __PRETTY_FUNCTION__ and __FUNCTION__ are GCC extensions, however
|
||||
// VC++ appears to only like __FUNCTION__.
|
||||
Builder.defineMacro("__PRETTY_FUNCTION__", "__FUNCTION__");
|
||||
|
||||
Reference in New Issue
Block a user