[llvm] 17bcae8 - [ARM][NFC] Remove an unused method
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 30 01:56:28 PDT 2021
Author: Igor Kudrin
Date: 2021-06-30T15:55:37+07:00
New Revision: 17bcae8906949374495fb396b0baf540feafb1a5
URL: https://github.com/llvm/llvm-project/commit/17bcae8906949374495fb396b0baf540feafb1a5
DIFF: https://github.com/llvm/llvm-project/commit/17bcae8906949374495fb396b0baf540feafb1a5.diff
LOG: [ARM][NFC] Remove an unused method
`ARMInstPrinter::printMveAddrModeQOperand()` was added in D62680, but
was never used. It looks like `printT2AddrModeImm8Operand<false>()` is
used instead.
Differential Revision: https://reviews.llvm.org/D105124
Added:
Modified:
llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp
llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp
index 464fd01b56aeb..aa0828ea0c02c 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp
@@ -622,22 +622,6 @@ void ARMInstPrinter::printMveAddrModeRQOperand(const MCInst *MI, unsigned OpNum,
O << "]" << markup(">");
}
-void ARMInstPrinter::printMveAddrModeQOperand(const MCInst *MI, unsigned OpNum,
- const MCSubtargetInfo &STI,
- raw_ostream &O) {
- const MCOperand &MO1 = MI->getOperand(OpNum);
- const MCOperand &MO2 = MI->getOperand(OpNum + 1);
-
- O << markup("<mem:") << "[";
- printRegName(O, MO1.getReg());
-
- int64_t Imm = MO2.getImm();
- if (Imm != 0)
- O << ", " << markup("<imm:") << '#' << Imm << markup(">");
-
- O << "]" << markup(">");
-}
-
void ARMInstPrinter::printLdStmModeOperand(const MCInst *MI, unsigned OpNum,
const MCSubtargetInfo &STI,
raw_ostream &O) {
diff --git a/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.h b/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.h
index d975d799e0791..0c686e434197c 100644
--- a/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.h
+++ b/llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.h
@@ -274,8 +274,6 @@ class ARMInstPrinter : public MCInstPrinter {
template<int shift>
void printMveAddrModeRQOperand(const MCInst *MI, unsigned OpNum,
const MCSubtargetInfo &STI, raw_ostream &O);
- void printMveAddrModeQOperand(const MCInst *MI, unsigned OpNum,
- const MCSubtargetInfo &STI, raw_ostream &O);
void printMveSaturateOp(const MCInst *MI, unsigned OpNum,
const MCSubtargetInfo &STI, raw_ostream &O);
private:
More information about the llvm-commits
mailing list