mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
__fastcall and __stdcall are mingw extensions to gcc for windows. Use the
__attribute__ notation which is supported on more platforms. llvm-svn: 60083
This commit is contained in:
parent
603d9e1cf7
commit
65d37a5d9d
@ -2193,10 +2193,10 @@ void CWriter::printFunctionSignature(const Function *F, bool Prototype) {
|
||||
if (F->hasDLLExportLinkage()) Out << "__declspec(dllexport) ";
|
||||
switch (F->getCallingConv()) {
|
||||
case CallingConv::X86_StdCall:
|
||||
Out << "__stdcall ";
|
||||
Out << "__attribute__((stdcall)) ";
|
||||
break;
|
||||
case CallingConv::X86_FastCall:
|
||||
Out << "__fastcall ";
|
||||
Out << "__attribute__((fastcall)) ";
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user