[llvm-commits] CVS: llvm/lib/VMCore/AsmWriter.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri May 19 14:59:05 PDT 2006



Changes in directory llvm/lib/VMCore:

AsmWriter.cpp updated: 1.200 -> 1.201
---
Log message:

Print csretcc calls like this:

        call csretcc void %structret( { sbyte }* %P )

instead of this:

        callcsretcc  void %structret( { sbyte }* %P )



---
Diffs of the changes:  (+8 -8)

 AsmWriter.cpp |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)


Index: llvm/lib/VMCore/AsmWriter.cpp
diff -u llvm/lib/VMCore/AsmWriter.cpp:1.200 llvm/lib/VMCore/AsmWriter.cpp:1.201
--- llvm/lib/VMCore/AsmWriter.cpp:1.200	Fri May 19 16:54:03 2006
+++ llvm/lib/VMCore/AsmWriter.cpp	Fri May 19 16:58:52 2006
@@ -954,8 +954,8 @@
   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::Fast:  Out << "fastcc "; break;
+  case CallingConv::Cold:  Out << "coldcc "; break;
   default: Out << "cc" << F->getCallingConv() << " "; break;
   }
 
@@ -1143,9 +1143,9 @@
     // 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;
+    case CallingConv::CSRet: Out << " csretcc"; break;
+    case CallingConv::Fast:  Out << " fastcc"; break;
+    case CallingConv::Cold:  Out << " coldcc"; break;
     default: Out << " cc" << CI->getCallingConv(); break;
     }
 
@@ -1181,9 +1181,9 @@
     // 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;
+    case CallingConv::CSRet: Out << " csretcc"; break;
+    case CallingConv::Fast:  Out << " fastcc"; break;
+    case CallingConv::Cold:  Out << " coldcc"; break;
     default: Out << " cc" << II->getCallingConv(); break;
     }
 






More information about the llvm-commits mailing list