summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-03 12:02:46 -0800
committerFangrui Song <maskray@google.com>2020-01-06 20:44:14 -0800
commit3d87d0b925713effb108a387924562211ecbf2be (patch)
tree6148e2085b40bf950855d6ff901c106fd2f12dbb /llvm/lib/Target/XCore
parentaa708763d30384c0da0b0779be96ba45f65773df (diff)
downloadbcm5719-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/XCore')
-rw-r--r--llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.cpp2
-rw-r--r--llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.cpp b/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.cpp
index b335e03e9d6..a6296cbdaf9 100644
--- a/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.cpp
+++ b/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.cpp
@@ -33,7 +33,7 @@ void XCoreInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
void XCoreInstPrinter::printInst(const MCInst *MI, uint64_t Address,
StringRef Annot, const MCSubtargetInfo &STI,
raw_ostream &O) {
- printInstruction(MI, O);
+ printInstruction(MI, Address, O);
printAnnotation(O, Annot);
}
diff --git a/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h b/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
index fa8d4cb81b9..c7868bf4cf8 100644
--- a/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
+++ b/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
@@ -27,7 +27,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;
OpenPOWER on IntegriCloud