diff options
author | Chris Lattner <sabre@nondot.org> | 2013-01-21 18:24:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2013-01-21 18:24:49 +0000 |
commit | 69582cf6c46456ad542df5aa09c47700c9525645 (patch) | |
tree | 9cbf35947385101c7c8f9d9586f3bf6b1f7ad86b /include | |
parent | afe77f33b2a361ed0d001596dcdde0e16d57abee (diff) | |
download | external_llvm-69582cf6c46456ad542df5aa09c47700c9525645.zip external_llvm-69582cf6c46456ad542df5aa09c47700c9525645.tar.gz external_llvm-69582cf6c46456ad542df5aa09c47700c9525645.tar.bz2 |
Fix a heinous inefficiency introduced in r149918, wherein reading each byte of a
BLOB (i.e., large, performance intensive data) in a bitcode file was switched to
invoking one virtual method call per byte read. Now we do one virtual call per
BLOB.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 16f9686..c143886 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -237,12 +237,6 @@ public: static_cast<uint64_t>(pos - 1)); } - unsigned char getByte(size_t pos) { - uint8_t byte = -1; - BitStream->getBitcodeBytes().readByte(pos, &byte); - return byte; - } - uint32_t getWord(size_t pos) { uint8_t buf[4] = { 0xFF, 0xFF, 0xFF, 0xFF }; BitStream->getBitcodeBytes().readBytes(pos, sizeof(buf), buf, NULL); |