mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-29 15:17:14 +00:00
Remove the Copied parameter from MemoryObject::readBytes.
There was exactly one caller using this API right, the others were relying on specific behavior of the default implementation. Since it's too hard to use it right just remove it and standardize on the default behavior. Defines away PR16132. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -501,14 +501,13 @@ MCDisassembler::DecodeStatus MBlazeDisassembler::getInstruction(MCInst &instr,
|
||||
raw_ostream &cStream) const {
|
||||
// The machine instruction.
|
||||
uint32_t insn;
|
||||
uint64_t read;
|
||||
uint8_t bytes[4];
|
||||
|
||||
// By default we consume 1 byte on failure
|
||||
size = 1;
|
||||
|
||||
// We want to read exactly 4 bytes of data.
|
||||
if (region.readBytes(address, 4, (uint8_t*)bytes, &read) == -1 || read < 4)
|
||||
if (region.readBytes(address, 4, bytes) == -1)
|
||||
return Fail;
|
||||
|
||||
// Encoded as a big-endian 32-bit word in the stream.
|
||||
|
Reference in New Issue
Block a user