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

Tanya Brethour tbrethou at cs.uiuc.edu
Sun May 23 15:59:01 PDT 2004


Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.147 -> 1.148

---
Log message:

Fixed up my changes to add support for cloning Machine Instructions.


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

Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.147 llvm/include/llvm/CodeGen/MachineInstr.h:1.148
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.147	Sun May 23 14:35:12 2004
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Sun May 23 15:58:02 2004
@@ -398,9 +398,6 @@
   const MachineBasicBlock* getParent() const { return parent; }
   MachineBasicBlock* getParent() { return parent; }
 
-  //void setParent(const MachineBasicBlock *MBB) { parent = MBB; } 
-  void setParent(MachineBasicBlock *MBB) { parent = MBB; } 
-
   /// getOpcode - Returns the opcode of this MachineInstr.
   ///
   const int getOpcode() const { return Opcode; }
@@ -461,10 +458,8 @@
                          MachineOperand::MO_VirtualRegister, V);
   }
 
-  //Clone Instruction 
-  //Create a copy of 'this' instruction that is
-  //identical in all ways except the following: The instruction has no
-  //parent The instruction has no name
+  /// clone - Create a copy of 'this' instruction that is identical in
+  /// all ways except the the instruction has no parent, prev, or next.
   MachineInstr* clone();
 
   //





More information about the llvm-commits mailing list