diff options
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index e8804dcad2..cbdbdcd811 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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; } |