Skip to content

Commit 6728a9a

Browse files
committed
[MCInstPrinter] Add parameter Address to printCustomAliasOperand. NFC
Follow-up of D72172 and llvmorg-11-init-6896-gb3cc5dcef0f.
1 parent befb4be commit 6728a9a

File tree

12 files changed

+43
-31
lines changed

12 files changed

+43
-31
lines changed

llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class AArch64InstPrinter : public MCInstPrinter {
3434
const MCSubtargetInfo &STI, raw_ostream &O);
3535
virtual bool printAliasInstr(const MCInst *MI, uint64_t Address,
3636
const MCSubtargetInfo &STI, raw_ostream &O);
37-
virtual void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
38-
unsigned PrintMethodIdx,
37+
virtual void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
38+
unsigned OpIdx, unsigned PrintMethodIdx,
3939
const MCSubtargetInfo &STI,
4040
raw_ostream &O);
4141

@@ -207,8 +207,8 @@ class AArch64AppleInstPrinter : public AArch64InstPrinter {
207207
const MCSubtargetInfo &STI, raw_ostream &O) override;
208208
bool printAliasInstr(const MCInst *MI, uint64_t Address,
209209
const MCSubtargetInfo &STI, raw_ostream &O) override;
210-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
211-
unsigned PrintMethodIdx,
210+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
211+
unsigned OpIdx, unsigned PrintMethodIdx,
212212
const MCSubtargetInfo &STI,
213213
raw_ostream &O) override;
214214

llvm/lib/Target/ARM/MCTargetDesc/ARMInstPrinter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class ARMInstPrinter : public MCInstPrinter {
3434
const MCSubtargetInfo &STI, raw_ostream &O);
3535
virtual bool printAliasInstr(const MCInst *MI, uint64_t Address,
3636
const MCSubtargetInfo &STI, raw_ostream &O);
37-
virtual void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
38-
unsigned PrintMethodIdx,
37+
virtual void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
38+
unsigned OpIdx, unsigned PrintMethodIdx,
3939
const MCSubtargetInfo &STI,
4040
raw_ostream &O);
4141
static const char *getRegisterName(unsigned RegNo,

llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ class AVRInstPrinter : public MCInstPrinter {
4747
// Autogenerated by TableGen.
4848
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);
4949
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &O);
50-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
51-
unsigned PrintMethodIdx, raw_ostream &O);
50+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
51+
unsigned OpIdx, unsigned PrintMethodIdx,
52+
raw_ostream &O);
5253
};
5354

5455
} // end namespace llvm

llvm/lib/Target/Lanai/MCTargetDesc/LanaiInstPrinter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ class LanaiInstPrinter : public MCInstPrinter {
4545
// Autogenerated by tblgen.
4646
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);
4747
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS);
48-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
49-
unsigned PrintMethodIdx, raw_ostream &O);
48+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
49+
unsigned OpIdx, unsigned PrintMethodIdx,
50+
raw_ostream &O);
5051
static const char *getRegisterName(unsigned RegNo);
5152
void printRegName(raw_ostream &OS, unsigned RegNo) const override;
5253

llvm/lib/Target/MSP430/MCTargetDesc/MSP430InstPrinter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ namespace llvm {
2828
// Autogenerated by tblgen.
2929
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);
3030
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &O);
31-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
32-
unsigned PrintMethodIdx, raw_ostream &O);
31+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
32+
unsigned OpIdx, unsigned PrintMethodIdx,
33+
raw_ostream &O);
3334
static const char *getRegisterName(unsigned RegNo);
3435

3536
private:

llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ class MipsInstPrinter : public MCInstPrinter {
8787
const MCSubtargetInfo &STI, raw_ostream &O) override;
8888

8989
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS);
90-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
91-
unsigned PrintMethodIdx, raw_ostream &O);
90+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
91+
unsigned OpIdx, unsigned PrintMethodIdx,
92+
raw_ostream &O);
9293

9394
private:
9495
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);

llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class PPCInstPrinter : public MCInstPrinter {
4040
static const char *getRegisterName(unsigned RegNo);
4141

4242
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS);
43-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
44-
unsigned PrintMethodIdx,
43+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
44+
unsigned OpIdx, unsigned PrintMethodIdx,
4545
raw_ostream &OS);
4646

4747
void printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O);

llvm/lib/Target/RISCV/MCTargetDesc/RISCVInstPrinter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class RISCVInstPrinter : public MCInstPrinter {
4747
const MCSubtargetInfo &STI, raw_ostream &O);
4848
bool printAliasInstr(const MCInst *MI, uint64_t Address,
4949
const MCSubtargetInfo &STI, raw_ostream &O);
50-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
51-
unsigned PrintMethodIdx,
50+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
51+
unsigned OpIdx, unsigned PrintMethodIdx,
5252
const MCSubtargetInfo &STI, raw_ostream &O);
5353
static const char *getRegisterName(unsigned RegNo);
5454
static const char *getRegisterName(unsigned RegNo, unsigned AltIdx);

llvm/lib/Target/Sparc/MCTargetDesc/SparcInstPrinter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ class SparcInstPrinter : public MCInstPrinter {
3535
const MCSubtargetInfo &STI, raw_ostream &O);
3636
bool printAliasInstr(const MCInst *MI, uint64_t Address,
3737
const MCSubtargetInfo &STI, raw_ostream &O);
38-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
39-
unsigned PrintMethodIdx,
38+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
39+
unsigned OpIdx, unsigned PrintMethodIdx,
4040
const MCSubtargetInfo &STI, raw_ostream &O);
4141
static const char *getRegisterName(unsigned RegNo);
4242

llvm/lib/Target/X86/MCTargetDesc/X86ATTInstPrinter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ class X86ATTInstPrinter final : public X86InstPrinterCommon {
3131
// Autogenerated by tblgen, returns true if we successfully printed an
3232
// alias.
3333
bool printAliasInstr(const MCInst *MI, uint64_t Address, raw_ostream &OS);
34-
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
35-
unsigned PrintMethodIdx, raw_ostream &O);
34+
void printCustomAliasOperand(const MCInst *MI, uint64_t Address,
35+
unsigned OpIdx, unsigned PrintMethodIdx,
36+
raw_ostream &O);
3637

3738
// Autogenerated by tblgen.
3839
void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &OS);

0 commit comments

Comments
 (0)