summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AVR
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/AVR
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/AVR')
-rw-r--r--llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp2
-rw-r--r--llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
index a84bf6b61fe..83211240615 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
@@ -79,7 +79,7 @@ void AVRInstPrinter::printInst(const MCInst *MI, uint64_t Address,
break;
default:
if (!printAliasInstr(MI, O))
- printInstruction(MI, O);
+ printInstruction(MI, Address, O);
printAnnotation(O, Annot);
break;
diff --git a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h
index f5e4245a1c4..247e9fc8398 100644
--- a/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h
+++ b/llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.h
@@ -41,7 +41,7 @@ private:
void printMemri(const MCInst *MI, unsigned OpNo, raw_ostream &O);
// Autogenerated by TableGen.
- void printInstruction(const MCInst *MI, raw_ostream &O);
+ void printInstruction(const MCInst *MI, uint64_t Address, raw_ostream &O);
bool printAliasInstr(const MCInst *MI, raw_ostream &O);
void printCustomAliasOperand(const MCInst *MI, unsigned OpIdx,
unsigned PrintMethodIdx, raw_ostream &O);
OpenPOWER on IntegriCloud