[llvm] r177350 - Make methods const.
Jakub Staszak
kubastaszak at gmail.com
Mon Mar 18 16:33:14 PDT 2013
Author: kuba
Date: Mon Mar 18 18:33:14 2013
New Revision: 177350
URL: http://llvm.org/viewvc/llvm-project?rev=177350&view=rev
Log:
Make methods const.
Modified:
llvm/trunk/include/llvm/MC/MCAtom.h
Modified: llvm/trunk/include/llvm/MC/MCAtom.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCAtom.h?rev=177350&r1=177349&r2=177350&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCAtom.h (original)
+++ llvm/trunk/include/llvm/MC/MCAtom.h Mon Mar 18 18:33:14 2013
@@ -46,8 +46,8 @@ class MCAtom {
: Type(T), Parent(P), Begin(B), End(E) { }
public:
- bool isTextAtom() { return Type == TextAtom; }
- bool isDataAtom() { return Type == DataAtom; }
+ bool isTextAtom() const { return Type == TextAtom; }
+ bool isDataAtom() const { return Type == DataAtom; }
void addInst(const MCInst &I, uint64_t Address, unsigned Size);
void addData(const MCData &D);
More information about the llvm-commits
mailing list