pretty print csretcc for calls
authorChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 21:54:03 +0000 (21:54 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 May 2006 21:54:03 +0000 (21:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28410 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 1aafb9cefee0e83ecd1085a6a16f0e31f0b9f4bc..3601425b947451ee1babde12e718fa7bc2011c58 100644 (file)
@@ -1143,6 +1143,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     // Print the calling convention being used.
     switch (CI->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" << CI->getCallingConv(); break;
@@ -1180,6 +1181,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
     // Print the calling convention being used.
     switch (II->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" << II->getCallingConv(); break;