add an accessor

llvm-svn: 30761
This commit is contained in:
Chris Lattner 2006-10-06 01:16:29 +00:00
parent 16ae43e901
commit 469ea0c94d
1 changed files with 5 additions and 0 deletions

View File

@ -189,6 +189,11 @@ public:
"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,