From 5dc99f1f91ad931c59533ec675a1771a4347ca73 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 12 Jul 2013 12:05:13 +0000 Subject: [PATCH] Mark MDNode::getOperand as readonly. We can't inline it but we can still CSE calls to it. llvm-svn: 186156 --- llvm/include/llvm/IR/Metadata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/IR/Metadata.h b/llvm/include/llvm/IR/Metadata.h index 8c2cfac235d2..e0b29fdf7c78 100644 --- a/llvm/include/llvm/IR/Metadata.h +++ b/llvm/include/llvm/IR/Metadata.h @@ -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; }