[PATCH] D83634: [AVRInstPrinter] printOperand: support llvm-objdump --print-imm-hex
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 11 17:07:51 PDT 2020
MaskRay created this revision.
MaskRay added reviewers: aykevl, dylanmckay.
Herald added subscribers: llvm-commits, Jim, hiraditya.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83634
Files:
llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
Index: llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
===================================================================
--- llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
+++ llvm/lib/Target/AVR/MCTargetDesc/AVRInstPrinter.cpp
@@ -131,7 +131,7 @@
O << getPrettyRegisterName(Op.getReg(), MRI);
}
} else if (Op.isImm()) {
- O << Op.getImm();
+ O << formatImm(Op.getImm());
} else {
assert(Op.isExpr() && "Unknown operand kind in printOperand");
O << *Op.getExpr();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83634.277267.patch
Type: text/x-patch
Size: 509 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200712/9ca9540e/attachment.bin>
More information about the llvm-commits
mailing list