Make methods const.
[oota-llvm.git] / include / llvm / MC / MCAtom.h
index 682cf7cd76c686dfc14225923466dd7521c0b49d..ae5bf0bc20693491c40d4f2ec604229f23b0a2e0 100644 (file)
@@ -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);