summaryrefslogtreecommitdiffstats
path: root/clang/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
commitfdf389b9e41c6b1ff2b24fd56e5c253a8703092b (patch)
treed0b74c6ff3a4760f52811d92a2412cf1e29194e7 /clang/lib/CodeGen/CodeGenModule.cpp
parent7ae7d91ee0071cbeb05362c85e5e1d97ed937db3 (diff)
downloadbcm5719-llvm-fdf389b9e41c6b1ff2b24fd56e5c253a8703092b.tar.gz
bcm5719-llvm-fdf389b9e41c6b1ff2b24fd56e5c253a8703092b.zip
Codegen support for fastcall & stdcall CC.
Patch by Ilya Okonsky! llvm-svn: 59080
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 3555ccd53a5..c4877a67453 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud