aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDisassembler/Disassembler.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2012-02-06 22:30:29 +0000
committerDerek Schuff <dschuff@google.com>2012-02-06 22:30:29 +0000
commit8b2dcad4b53aa9403f9a6397e35566cc78ee843c (patch)
tree4f7173ceab4188ae1bb82547d0f7e7d04c497496 /llvm/lib/MC/MCDisassembler/Disassembler.cpp
parentfe3bdad393272c3f546e49eba300223c2426217e (diff)
downloadllvm-8b2dcad4b53aa9403f9a6397e35566cc78ee843c.zip
llvm-8b2dcad4b53aa9403f9a6397e35566cc78ee843c.tar.gz
llvm-8b2dcad4b53aa9403f9a6397e35566cc78ee843c.tar.bz2
Enable streaming of bitcode
This CL delays reading of function bodies from initial parse until materialization, allowing overlap of compilation with bitcode download. llvm-svn: 149918
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
-rw-r--r--llvm/lib/MC/MCDisassembler/Disassembler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCDisassembler/Disassembler.cpp b/llvm/lib/MC/MCDisassembler/Disassembler.cpp
index 9eb99d28..dee576e 100644
--- a/llvm/lib/MC/MCDisassembler/Disassembler.cpp
+++ b/llvm/lib/MC/MCDisassembler/Disassembler.cpp
@@ -100,9 +100,9 @@ public:
Bytes(bytes), Size(size), BasePC(basePC) {}
uint64_t getBase() const { return BasePC; }
- uint64_t getExtent() const { return Size; }
+ uint64_t getExtent() { return Size; }
- int readByte(uint64_t Addr, uint8_t *Byte) const {
+ int readByte(uint64_t Addr, uint8_t *Byte) {
if (Addr - BasePC >= Size)
return -1;
*Byte = Bytes[Addr - BasePC];