diff --git a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp index 3170ad8c99774..e7820f7d6c5b1 100644 --- a/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp +++ b/llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp @@ -38,9 +38,6 @@ using DecodeStatus = MCDisassembler::DecodeStatus; template static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address, const MCDisassembler *Decoder); -template -static DecodeStatus DecodeUImm(MCInst &Inst, uint64_t Imm, uint64_t Address, - const MCDisassembler *Decoder); #define Success MCDisassembler::Success #define Fail MCDisassembler::Fail @@ -1444,16 +1441,6 @@ static DecodeStatus DecodeSImm(MCInst &Inst, uint64_t Imm, uint64_t Address, return Success; } -template -static DecodeStatus DecodeUImm(MCInst &Inst, uint64_t Imm, uint64_t Address, - const MCDisassembler *Decoder) { - if (Imm & ~((1ULL << Bits) - 1)) - return Fail; - - Inst.addOperand(MCOperand::createImm(Imm)); - return Success; -} - // Decode 8-bit signed/unsigned immediate for a given element width. template static DecodeStatus DecodeImm8OptLsl(MCInst &Inst, unsigned Imm, uint64_t Addr,