[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 1 14:38:58 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCAsmPrinter.cpp updated: 1.143 -> 1.144
---
Log message:

add a method


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

 PPCAsmPrinter.cpp |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff -u llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.143 llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.144
--- llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1.143	Thu Jan 26 14:21:46 2006
+++ llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp	Wed Feb  1 16:38:46 2006
@@ -83,7 +83,7 @@
     void printMachineInstruction(const MachineInstr *MI);
     void printOp(const MachineOperand &MO);
 
-    void printOperand(const MachineInstr *MI, unsigned OpNo){
+    void printOperand(const MachineInstr *MI, unsigned OpNo) {
       const MachineOperand &MO = MI->getOperand(OpNo);
       if (MO.getType() == MachineOperand::MO_MachineRegister) {
         assert(MRegisterInfo::isPhysicalRegister(MO.getReg())&&"Not physreg??");
@@ -94,7 +94,13 @@
         printOp(MO);
       }
     }
-
+    
+    bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
+                         unsigned AsmVariant) {
+       printOperand(MI, OpNo);
+       return false;
+    }
+    
     void printU5ImmOperand(const MachineInstr *MI, unsigned OpNo) {
       unsigned char value = MI->getOperand(OpNo).getImmedValue();
       assert(value <= 31 && "Invalid u5imm argument!");






More information about the llvm-commits mailing list