llvm.org GIT mirror llvm / f9ef5b3
__fastcall and __stdcall are mingw extensions to gcc for windows. Use the __attribute__ notation which is supported on more platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60083 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
21922192 if (F->hasDLLExportLinkage()) Out << "__declspec(dllexport) ";
21932193 switch (F->getCallingConv()) {
21942194 case CallingConv::X86_StdCall:
2195 Out << "__stdcall ";
2195 Out << "__attribute__((stdcall)) ";
21962196 break;
21972197 case CallingConv::X86_FastCall:
2198 Out << "__fastcall ";
2198 Out << "__attribute__((fastcall)) ";
21992199 break;
22002200 }
22012201