mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Return the number of read bytes in MemoryObject::readBytes.
Returning more information will allow BitstreamReader to be simplified a bit and changed to read 64 bits at a time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221794 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -341,7 +341,7 @@ public:
|
||||
// Read the next word from the stream.
|
||||
uint8_t Array[sizeof(word_t)] = {0};
|
||||
|
||||
BitStream->getBitcodeBytes().readBytes(NextChar, sizeof(Array), Array);
|
||||
BitStream->getBitcodeBytes().readBytes(Array, sizeof(Array), NextChar);
|
||||
|
||||
// Handle big-endian byte-swapping if necessary.
|
||||
support::detail::packed_endian_specific_integral
|
||||
|
Reference in New Issue
Block a user