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, _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits