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

Chris Lattner sabre at nondot.org
Thu Oct 5 18:16:44 PDT 2006



Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.187 -> 1.188
---
Log message:

add an accessor


---
Diffs of the changes:  (+5 -0)

 MachineInstr.h |    5 +++++
 1 files changed, 5 insertions(+)


Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.187 llvm/include/llvm/CodeGen/MachineInstr.h:1.188
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.187	Tue Sep  5 15:20:04 2006
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Thu Oct  5 20:16:29 2006
@@ -189,6 +189,11 @@
         "Wrong MachineOperand accessor");
     offset = Offset;
   }
+  void setConstantPoolIndex(unsigned Idx) {
+    assert(isConstantPoolIndex() && "Wrong MachineOperand accessor");
+    contents.immedVal = Idx;
+  }
+  
   
   /// ChangeToImmediate - Replace this operand with a new immediate operand of
   /// the specified value.  If an operand is known to be an immediate already,






More information about the llvm-commits mailing list