1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

add an accessor

llvm-svn: 30761
This commit is contained in:
Chris Lattner 2006-10-06 01:16:29 +00:00
parent 5fc3bb074c
commit 621a182abd

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,