aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-07-12 12:05:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-07-12 12:05:13 +0000
commit7ffc422659e29061511b9ae5f6fdda2458a76b50 (patch)
tree6b4cdd605d9cff15cac563f6754addd1f9d58df2 /include
parent6f0ec20e8fa23e9588205ea0eaba8f3021abe1ac (diff)
downloadexternal_llvm-7ffc422659e29061511b9ae5f6fdda2458a76b50.zip
external_llvm-7ffc422659e29061511b9ae5f6fdda2458a76b50.tar.gz
external_llvm-7ffc422659e29061511b9ae5f6fdda2458a76b50.tar.bz2
Mark MDNode::getOperand as readonly.
We can't inline it but we can still CSE calls to it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/IR/Metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/IR/Metadata.h b/include/llvm/IR/Metadata.h
index 8c2cfac..e0b29fd 100644
--- a/include/llvm/IR/Metadata.h
+++ b/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; }