Codegen support for fastcall & stdcall CC.

Patch by Ilya Okonsky!

llvm-svn: 59080
This commit is contained in:
Anton Korobeynikov
2008-11-11 20:21:14 +00:00
parent 7ae7d91ee0
commit fdf389b9e4
2 changed files with 21 additions and 1 deletions

View File

@@ -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