[PATCH] D63393: [llvm-objdump] remove unnecessary indentation when dumping ELF data.
Yuanfang Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 16 18:01:50 PDT 2019
ychen created this revision.
ychen added reviewers: MaskRay, jhenderson, rupprecht.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Great to have this before https://reviews.llvm.org/D62964
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D63393
Files:
llvm/tools/llvm-objdump/llvm-objdump.cpp
Index: llvm/tools/llvm-objdump/llvm-objdump.cpp
===================================================================
--- llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -996,10 +996,8 @@
int NumBytes = 0;
for (; Index < End; ++Index) {
- if (NumBytes == 0) {
+ if (NumBytes == 0)
outs() << format("%8" PRIx64 ":", SectionAddr + Index);
- outs() << "\t";
- }
Byte = Bytes.slice(Index)[0];
outs() << format(" %02x", Byte);
AsciiData[NumBytes] = isPrint(Byte) ? Byte : '.';
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63393.204981.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190617/5acae71a/attachment.bin>
More information about the llvm-commits
mailing list