diff options
| author | Fangrui Song <maskray@google.com> | 2020-01-03 12:02:46 -0800 | 
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2020-01-06 20:44:14 -0800 | 
| commit | 3d87d0b925713effb108a387924562211ecbf2be (patch) | |
| tree | 6148e2085b40bf950855d6ff901c106fd2f12dbb /llvm/lib/Target/Mips | |
| parent | aa708763d30384c0da0b0779be96ba45f65773df (diff) | |
| download | bcm5719-llvm-3d87d0b925713effb108a387924562211ecbf2be.tar.gz bcm5719-llvm-3d87d0b925713effb108a387924562211ecbf2be.zip  | |
[MC] Add parameter `Address` to MCInstrPrinter::printInstruction
Follow-up of D72172.
Reviewed By: jhenderson, rnk
Differential Revision: https://reviews.llvm.org/D72180
Diffstat (limited to 'llvm/lib/Target/Mips')
| -rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp b/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp index 18e26544f53..649ba20324b 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.cpp @@ -110,7 +110,7 @@ void MipsInstPrinter::printInst(const MCInst *MI, uint64_t Address,    // Try to print any aliases first.    if (!printAliasInstr(MI, O) && !printAlias(*MI, O)) -    printInstruction(MI, O); +    printInstruction(MI, Address, O);    printAnnotation(O, Annot);    switch (MI->getOpcode()) { diff --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h b/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h index e88df321811..0b1ee800e44 100644 --- a/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h +++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsInstPrinter.h @@ -79,7 +79,7 @@ public:      : MCInstPrinter(MAI, MII, MRI) {}    // Autogenerated by tblgen. -  void printInstruction(const MCInst *MI, raw_ostream &O); +  void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);    static const char *getRegisterName(unsigned RegNo);    void printRegName(raw_ostream &OS, unsigned RegNo) const override;  | 

