summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin LeMahieu <colinl@codeaurora.org>2015-02-17 19:46:23 +0000
committerColin LeMahieu <colinl@codeaurora.org>2015-02-17 19:46:23 +0000
commit3c56f47f68d0c4516e4c5da583178f4d911df1dc (patch)
tree1980f96b904ba2bd84c3b324f76b6530c34eacf3
parent7a234a5bbcf37521b4aa428814a66c67b01c5603 (diff)
downloadbcm5719-llvm-3c56f47f68d0c4516e4c5da583178f4d911df1dc.tar.gz
bcm5719-llvm-3c56f47f68d0c4516e4c5da583178f4d911df1dc.zip
[MC] Constifying MCInst::size()
llvm-svn: 229524
-rw-r--r--llvm/include/llvm/MC/MCInst.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/MC/MCInst.h b/llvm/include/llvm/MC/MCInst.h
index 5e25372be4a..aed734765b3 100644
--- a/llvm/include/llvm/MC/MCInst.h
+++ b/llvm/include/llvm/MC/MCInst.h
@@ -169,7 +169,7 @@ public:
}
void clear() { Operands.clear(); }
- size_t size() { return Operands.size(); }
+ size_t size() const { return Operands.size(); }
typedef SmallVectorImpl<MCOperand>::iterator iterator;
typedef SmallVectorImpl<MCOperand>::const_iterator const_iterator;
OpenPOWER on IntegriCloud