[llvm] r229524 - [MC] Constifying MCInst::size()

Colin LeMahieu colinl at codeaurora.org
Tue Feb 17 11:46:23 PST 2015


Author: colinl
Date: Tue Feb 17 13:46:23 2015
New Revision: 229524

URL: http://llvm.org/viewvc/llvm-project?rev=229524&view=rev
Log:
[MC] Constifying MCInst::size()

Modified:
    llvm/trunk/include/llvm/MC/MCInst.h

Modified: llvm/trunk/include/llvm/MC/MCInst.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCInst.h?rev=229524&r1=229523&r2=229524&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCInst.h (original)
+++ llvm/trunk/include/llvm/MC/MCInst.h Tue Feb 17 13:46:23 2015
@@ -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;





More information about the llvm-commits mailing list