[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 27 13:52:55 PDT 2005



Changes in directory llvm/lib/Target/CBackend:

Writer.cpp updated: 1.244 -> 1.245
---
Log message:

fix CBackend/2005-09-27-VolatileFuncPtr.ll


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

 Writer.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.244 llvm/lib/Target/CBackend/Writer.cpp:1.245
--- llvm/lib/Target/CBackend/Writer.cpp:1.244	Tue Aug 23 15:22:50 2005
+++ llvm/lib/Target/CBackend/Writer.cpp	Tue Sep 27 15:52:44 2005
@@ -1683,8 +1683,8 @@
   Out << '*';
   if (I.isVolatile()) {
     Out << "((";
-    printType(Out, I.getType());
-    Out << " volatile*)";
+    printType(Out, I.getType(), "volatile*");
+    Out << ")";
   }
 
   writeOperand(I.getOperand(0));
@@ -1697,8 +1697,8 @@
   Out << '*';
   if (I.isVolatile()) {
     Out << "((";
-    printType(Out, I.getOperand(0)->getType());
-    Out << " volatile*)";
+    printType(Out, I.getOperand(0)->getType(), " volatile*");
+    Out << ")";
   }
   writeOperand(I.getPointerOperand());
   if (I.isVolatile()) Out << ')';






More information about the llvm-commits mailing list