aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2006-09-20 22:03:51 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2006-09-20 22:03:51 +0000
commitf824868ed9d2cc756a797f6dbd67732f75e31cd6 (patch)
treebad2d3324afbbc3f3986719c1c323586d3a67f6c /lib/VMCore/AsmWriter.cpp
parentc459bbf0fdef4e9b074de8fee1728c08348c46dc (diff)
downloadexternal_llvm-f824868ed9d2cc756a797f6dbd67732f75e31cd6.zip
external_llvm-f824868ed9d2cc756a797f6dbd67732f75e31cd6.tar.gz
external_llvm-f824868ed9d2cc756a797f6dbd67732f75e31cd6.tar.bz2
Adding codegeneration for StdCall & FastCall calling conventions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index b6f5fb3..6b8f149 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -967,9 +967,11 @@ void AssemblyWriter::printFunction(const Function *F) {
// Print the calling convention.
switch (F->getCallingConv()) {
case CallingConv::C: break; // default
- case CallingConv::CSRet: Out << "csretcc "; break;
- case CallingConv::Fast: Out << "fastcc "; break;
- case CallingConv::Cold: Out << "coldcc "; break;
+ case CallingConv::CSRet: Out << "csretcc "; break;
+ case CallingConv::Fast: Out << "fastcc "; break;
+ case CallingConv::Cold: Out << "coldcc "; break;
+ case CallingConv::X86_StdCall: Out << "x86_stdcallcc "; break;
+ case CallingConv::X86_FastCall: Out << "x86_fastcallcc "; break;
default: Out << "cc" << F->getCallingConv() << " "; break;
}
@@ -1159,6 +1161,8 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
case CallingConv::CSRet: Out << " csretcc"; break;
case CallingConv::Fast: Out << " fastcc"; break;
case CallingConv::Cold: Out << " coldcc"; break;
+ case CallingConv::X86_StdCall: Out << "x86_stdcallcc "; break;
+ case CallingConv::X86_FastCall: Out << "x86_fastcallcc "; break;
default: Out << " cc" << CI->getCallingConv(); break;
}
@@ -1197,6 +1201,8 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
case CallingConv::CSRet: Out << " csretcc"; break;
case CallingConv::Fast: Out << " fastcc"; break;
case CallingConv::Cold: Out << " coldcc"; break;
+ case CallingConv::X86_StdCall: Out << "x86_stdcallcc "; break;
+ case CallingConv::X86_FastCall: Out << "x86_fastcallcc "; break;
default: Out << " cc" << II->getCallingConv(); break;
}