diff options
author | Derek Schuff <dschuff@google.com> | 2012-02-06 22:30:29 +0000 |
---|---|---|
committer | Derek Schuff <dschuff@google.com> | 2012-02-06 22:30:29 +0000 |
commit | 8b2dcad4b53aa9403f9a6397e35566cc78ee843c (patch) | |
tree | 4f7173ceab4188ae1bb82547d0f7e7d04c497496 /llvm/tools/llvm-mc | |
parent | fe3bdad393272c3f546e49eba300223c2426217e (diff) | |
download | bcm5719-llvm-8b2dcad4b53aa9403f9a6397e35566cc78ee843c.tar.gz bcm5719-llvm-8b2dcad4b53aa9403f9a6397e35566cc78ee843c.zip |
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/tools/llvm-mc')
-rw-r--r-- | llvm/tools/llvm-mc/Disassembler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-mc/Disassembler.cpp b/llvm/tools/llvm-mc/Disassembler.cpp index 03956b426ef..32fc2ba57d3 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() const { return Bytes.size(); } + uint64_t getExtent() { return Bytes.size(); } - int readByte(uint64_t Addr, uint8_t *Byte) const { + int readByte(uint64_t Addr, uint8_t *Byte) { if (Addr >= getExtent()) return -1; *Byte = Bytes[Addr].first; |