Asmprint csret nicely
authorChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 21:29:57 +0000 (21:29 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 21:29:57 +0000 (21:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28408 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index abbb8a865c6183fbb915f164897794c51b8c92f0..1aafb9cefee0e83ecd1085a6a16f0e31f0b9f4bc 100644 (file)
@@ -953,6 +953,7 @@ 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;
   default: Out << "cc" << F->getCallingConv() << " "; break;