[llvm-commits] [llvm] r60083 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp

Nick Lewycky nicholas at mxc.ca
Tue Nov 25 19:17:27 PST 2008


Author: nicholas
Date: Tue Nov 25 21:17:27 2008
New Revision: 60083

URL: http://llvm.org/viewvc/llvm-project?rev=60083&view=rev
Log:
__fastcall and __stdcall are mingw extensions to gcc for windows. Use the
__attribute__ notation which is supported on more platforms.

Modified:
    llvm/trunk/lib/Target/CBackend/CBackend.cpp

Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=60083&r1=60082&r2=60083&view=diff

==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Tue Nov 25 21:17:27 2008
@@ -2193,10 +2193,10 @@
   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;
   }
   





More information about the llvm-commits mailing list