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:
parent
5fc3bb074c
commit
621a182abd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user