summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-11-26 03:17:27 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-11-26 03:17:27 +0000
commitea0bd51cae34e966c043e3cf24066d57a6b3bc93 (patch)
tree02a5162f48b5b74c33647c37e842529702064559 /llvm/lib/Target/CBackend/CBackend.cpp
parente34fe2c52d599b061f6389108511eb003a7b42b1 (diff)
downloadbcm5719-llvm-ea0bd51cae34e966c043e3cf24066d57a6b3bc93.tar.gz
bcm5719-llvm-ea0bd51cae34e966c043e3cf24066d57a6b3bc93.zip
__fastcall and __stdcall are mingw extensions to gcc for windows. Use the
__attribute__ notation which is supported on more platforms. llvm-svn: 60083
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index e8804dcad27..cbdbdcd811a 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud