diff options
author | Steve Naroff <snaroff@apple.com> | 2008-12-25 14:16:32 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-12-25 14:16:32 +0000 |
commit | 239f07384fe5e7194e780d98a17553084efeeb44 (patch) | |
tree | 26e5876ad3a736211068655aaf7fb7840e0e4b94 /lib/Lex/Preprocessor.cpp | |
parent | 776caefc70360a00ee860f63d7f76288d5f41d87 (diff) |
Add parser support for __cdecl, __stdcall, and __fastcall.
Change preprocessor implementation of _cdecl to reference __cdecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61430 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 97ff07049f..e68a44c188 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -483,9 +483,7 @@ static void InitializePredefinedMacros(Preprocessor &PP, // Filter out some microsoft extensions when trying to parse in ms-compat // mode. if (PP.getLangOptions().Microsoft) { - DefineBuiltinMacro(Buf, "__stdcall="); - DefineBuiltinMacro(Buf, "__cdecl="); - DefineBuiltinMacro(Buf, "_cdecl="); + DefineBuiltinMacro(Buf, "_cdecl=__cdecl"); DefineBuiltinMacro(Buf, "__ptr64="); DefineBuiltinMacro(Buf, "__w64="); DefineBuiltinMacro(Buf, "__forceinline="); |