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

Chris Lattner lattner at cs.uiuc.edu
Thu Feb 12 10:11:06 PST 2004


Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.132 -> 1.133

---
Log message:

Rename the opCode instance variable to Opcode


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

Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.132 llvm/include/llvm/CodeGen/MachineInstr.h:1.133
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.132	Thu Feb 12 10:05:03 2004
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Thu Feb 12 10:09:53 2004
@@ -332,7 +332,7 @@
 //===----------------------------------------------------------------------===//
 
 class MachineInstr {
-  int              opCode;              // the opcode
+  int              Opcode;              // the opcode
   std::vector<MachineOperand> operands; // the operands
   unsigned numImplicitRefs;             // number of implicit operands
   MachineInstr* prev, *next;            // links for our intrusive list
@@ -371,7 +371,7 @@
   
   /// Accessors for opcode.
   ///
-  const int getOpcode() const { return opCode; }
+  const int getOpcode() const { return Opcode; }
 
   /// Access to explicit operands of the instruction.
   ///
@@ -591,7 +591,7 @@
 
   /// setOpcode - Replace the opcode of the current instruction with a new one.
   ///
-  void setOpcode(unsigned Op) { opCode = Op; }
+  void setOpcode(unsigned Op) { Opcode = Op; }
 
   /// RemoveOperand - Erase an operand  from an instruction, leaving it with one
   /// fewer operand than it started with.





More information about the llvm-commits mailing list