[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h

Chris Lattner lattner at cs.uiuc.edu
Sun Oct 27 22:46:01 PST 2002


Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.72 -> 1.73

---
Log message:

Rename the redundant MachineOperand::getOperandType() to MachineOperand::getType()


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.72 llvm/include/llvm/CodeGen/MachineInstr.h:1.73
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.72	Sun Oct 27 22:30:20 2002
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Sun Oct 27 22:44:59 2002
@@ -101,7 +101,7 @@
   // Accessor methods.  Caller is responsible for checking the
   // operand type before invoking the corresponding accessor.
   // 
-  MachineOperandType getOperandType() const { return opType; }
+  MachineOperandType getType() const { return opType; }
 
   inline Value*		getVRegValue	() const {
     assert(opType == MO_VirtualRegister || opType == MO_CCRegister || 
@@ -248,7 +248,7 @@
   }
 
   MachineOperand::MachineOperandType getOperandType(unsigned i) const {
-    return getOperand(i).getOperandType();
+    return getOperand(i).getType();
   }
 
   bool operandIsDefined(unsigned i) const {





More information about the llvm-commits mailing list