projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5504602
)
add an accessor
author
Chris Lattner
<sabre@nondot.org>
Fri, 6 Oct 2006 01:16:29 +0000
(
01:16
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 6 Oct 2006 01:16:29 +0000
(
01:16
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30761
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineInstr.h
b/include/llvm/CodeGen/MachineInstr.h
index d3136dfae4c83207756e0b51229076ddb7755c1c..6ec01a6b8c14454e67c96d2fe704fbb7a7f9288d 100644
(file)
--- a/
include/llvm/CodeGen/MachineInstr.h
+++ b/
include/llvm/CodeGen/MachineInstr.h
@@
-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,