summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mc
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2012-02-29 01:09:06 +0000
committerDerek Schuff <dschuff@google.com>2012-02-29 01:09:06 +0000
commit56b662ce0f86c6c8601089bb0903cd066a38d48e (patch)
treeedaccd8708f3dc3e05cb56212b1cf754cbec21ee /llvm/tools/llvm-mc
parente979eda7e0dc03aced5049aed8338b0b8fe8fec5 (diff)
downloadbcm5719-llvm-56b662ce0f86c6c8601089bb0903cd066a38d48e.tar.gz
bcm5719-llvm-56b662ce0f86c6c8601089bb0903cd066a38d48e.zip
Make MemoryObject accessor members const again
llvm-svn: 151687
Diffstat (limited to 'llvm/tools/llvm-mc')
-rw-r--r--llvm/tools/llvm-mc/Disassembler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mc/Disassembler.cpp b/llvm/tools/llvm-mc/Disassembler.cpp
index 32fc2ba57d3..8114580cb94 100644
--- a/llvm/tools/llvm-mc/Disassembler.cpp
+++ b/llvm/tools/llvm-mc/Disassembler.cpp
@@ -42,9 +42,9 @@ public:
VectorMemoryObject(const ByteArrayTy &bytes) : Bytes(bytes) {}
uint64_t getBase() const { return 0; }
- uint64_t getExtent() { return Bytes.size(); }
+ uint64_t getExtent() const { return Bytes.size(); }
- int readByte(uint64_t Addr, uint8_t *Byte) {
+ int readByte(uint64_t Addr, uint8_t *Byte) const {
if (Addr >= getExtent())
return -1;
*Byte = Bytes[Addr].first;
@@ -365,4 +365,3 @@ int Disassembler::disassembleEnhanced(const std::string &TS,
return 0;
}
-
OpenPOWER on IntegriCloud