mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Use const properly so that we dont remove const qualifier from region and MII
by casting. Found with gcc48. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -719,7 +719,7 @@ static BOOL is16BitEquvalent(const char* orig, const char* equiv) {
|
||||
* @return - 0 if the ModR/M could be read when needed or was not needed;
|
||||
* nonzero otherwise.
|
||||
*/
|
||||
static int getID(struct InternalInstruction* insn, void *miiArg) {
|
||||
static int getID(struct InternalInstruction* insn, const void *miiArg) {
|
||||
uint8_t attrMask;
|
||||
uint16_t instructionID;
|
||||
|
||||
@@ -1621,10 +1621,10 @@ static int readOperands(struct InternalInstruction* insn) {
|
||||
*/
|
||||
int decodeInstruction(struct InternalInstruction* insn,
|
||||
byteReader_t reader,
|
||||
void* readerArg,
|
||||
const void* readerArg,
|
||||
dlog_t logger,
|
||||
void* loggerArg,
|
||||
void* miiArg,
|
||||
const void* miiArg,
|
||||
uint64_t startLoc,
|
||||
DisassemblerMode mode) {
|
||||
memset(insn, 0, sizeof(struct InternalInstruction));
|
||||
|
Reference in New Issue
Block a user