projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a234a5
)
[MC] Constifying MCInst::size()
author
Colin LeMahieu
<colinl@codeaurora.org>
Tue, 17 Feb 2015 19:46:23 +0000
(19:46 +0000)
committer
Colin LeMahieu
<colinl@codeaurora.org>
Tue, 17 Feb 2015 19:46:23 +0000
(19:46 +0000)
llvm-svn: 229524
llvm/include/llvm/MC/MCInst.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/MC/MCInst.h
b/llvm/include/llvm/MC/MCInst.h
index
5e25372
..
aed7347
100644
(file)
--- 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;