aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-11-11 20:21:14 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-11-11 20:21:14 +0000
commitf1c9c09e2e2220e4bbfb7e9d8adf9bf2c2406b80 (patch)
tree0e7a74311cc2760b85eb03f663176ddd25eb7ff6 /lib/CodeGen/CodeGenModule.cpp
parente219b8a9c02198b1938dfa9ed91ef9cf0e6ce4f3 (diff)
Codegen support for fastcall & stdcall CC.
Patch by Ilya Okonsky! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 3555ccd53a..c4877a6745 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -252,7 +252,10 @@ void CodeGenModule::SetFunctionAttributes(const Decl *D,
// Set the appropriate calling convention for the Function.
if (D->getAttr<FastCallAttr>())
- F->setCallingConv(llvm::CallingConv::Fast);
+ F->setCallingConv(llvm::CallingConv::X86_FastCall);
+
+ if (D->getAttr<StdCallAttr>())
+ F->setCallingConv(llvm::CallingConv::X86_StdCall);
}
/// SetFunctionAttributesForDefinition - Set function attributes