[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 20 15:04:07 PDT 2006
Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.205 -> 1.206
---
Log message:
Adding codegeneration for StdCall & FastCall calling conventions
---
Diffs of the changes: (+9 -3)
AsmWriter.cpp | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.205 llvm/lib/VMCore/AsmWriter.cpp:1.206
--- llvm/lib/VMCore/AsmWriter.cpp:1.205 Thu Sep 14 13:23:27 2006
+++ llvm/lib/VMCore/AsmWriter.cpp Wed Sep 20 17:03:51 2006
@@ -967,9 +967,11 @@
// 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 @@
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 @@
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;
}
More information about the llvm-commits
mailing list