forked from OSchip/llvm-project
Mark MDNode::getOperand as readonly.
We can't inline it but we can still CSE calls to it. llvm-svn: 186156
This commit is contained in:
parent
fde429ba69
commit
5dc99f1f91
|
@ -139,7 +139,7 @@ public:
|
|||
void replaceOperandWith(unsigned i, Value *NewVal);
|
||||
|
||||
/// getOperand - Return specified operand.
|
||||
Value *getOperand(unsigned i) const;
|
||||
Value *getOperand(unsigned i) const LLVM_READONLY;
|
||||
|
||||
/// getNumOperands - Return number of MDNode operands.
|
||||
unsigned getNumOperands() const { return NumOperands; }
|
||||
|
|
Loading…
Reference in New Issue