diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp b/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp index 9bbb2938ab75..a4d63a62f6aa 100644 --- a/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp +++ b/contrib/llvm-project/llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp @@ -14,8 +14,8 @@ #include "MSP430.h" #include "TargetInfo/MSP430TargetInfo.h" #include "llvm/MC/MCContext.h" +#include "llvm/MC/MCDecoderOps.h" #include "llvm/MC/MCDisassembler/MCDisassembler.h" -#include "llvm/MC/MCFixedLenDisassembler.h" #include "llvm/MC/MCInst.h" #include "llvm/MC/MCRegisterInfo.h" #include "llvm/MC/MCSubtargetInfo.h" @@ -72,7 +72,7 @@ static const unsigned GR8DecoderTable[] = { static DecodeStatus DecodeGR8RegisterClass(MCInst &MI, uint64_t RegNo, uint64_t Address, - const void *Decoder) { + const MCDisassembler *Decoder) { if (RegNo > 15) return MCDisassembler::Fail; @@ -90,7 +90,7 @@ static const unsigned GR16DecoderTable[] = { static DecodeStatus DecodeGR16RegisterClass(MCInst &MI, uint64_t RegNo, uint64_t Address, - const void *Decoder) { + const MCDisassembler *Decoder) { if (RegNo > 15) return MCDisassembler::Fail; @@ -100,16 +100,16 @@ static DecodeStatus DecodeGR16RegisterClass(MCInst &MI, uint64_t RegNo, } static DecodeStatus DecodeCGImm(MCInst &MI, uint64_t Bits, uint64_t Address, - const void *Decoder); + const MCDisassembler *Decoder); static DecodeStatus DecodeMemOperand(MCInst &MI, uint64_t Bits, uint64_t Address, - const void *Decoder); + const MCDisassembler *Decoder); #include "MSP430GenDisassemblerTables.inc" static DecodeStatus DecodeCGImm(MCInst &MI, uint64_t Bits, uint64_t Address, - const void *Decoder) { + const MCDisassembler *Decoder) { int64_t Imm; switch (Bits) { default: @@ -127,7 +127,7 @@ static DecodeStatus DecodeCGImm(MCInst &MI, uint64_t Bits, uint64_t Address, static DecodeStatus DecodeMemOperand(MCInst &MI, uint64_t Bits, uint64_t Address, - const void *Decoder) { + const MCDisassembler *Decoder) { unsigned Reg = Bits & 15; unsigned Imm = Bits >> 4; |