aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/MC
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2013-03-18 23:33:14 +0000
committerJakub Staszak <kubastaszak@gmail.com>2013-03-18 23:33:14 +0000
commit570cae29bcbddc7516296e4206c293bc13abc9ef (patch)
tree4ff04f9cc4aa5f23ad059f174778183c0388c663 /include/llvm/MC
parent89c4dc63391751db69a63ca924dea126123f96ab (diff)
Make methods const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177350 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC')
-rw-r--r--include/llvm/MC/MCAtom.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/MC/MCAtom.h b/include/llvm/MC/MCAtom.h
index 682cf7cd76..ae5bf0bc20 100644
--- a/include/llvm/MC/MCAtom.h
+++ b/include/llvm/MC/MCAtom.h
@@ -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);