[all-commits] [llvm/llvm-project] 6bf989: [llvm-readelf] Fix emitting incorrect number of sp...
Xing GUO via All-commits
all-commits at lists.llvm.org
Mon Jul 27 18:55:09 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6bf989b9474ace6a35021e6123d13b7fd59bf9f4
https://github.com/llvm/llvm-project/commit/6bf989b9474ace6a35021e6123d13b7fd59bf9f4
Author: Xing GUO <higuoxing at gmail.com>
Date: 2020-07-28 (Tue, 28 Jul 2020)
Changed paths:
M llvm/test/tools/llvm-readobj/ELF/hex-dump.test
M llvm/tools/llvm-readobj/ObjDumper.cpp
Log Message:
-----------
[llvm-readelf] Fix emitting incorrect number of spaces in '--hex-dump'.
This patch helps teach llvm-readelf to emit a correct number spaces when
dumping in hex format.
Before this patch, when the hex data doesn't fill the 4th column, some
spaces are missing.
```
Hex dump of section '.sec':
0x00000000 00000000 00000000 00000000 00000000 ................
0x00000010 00000000 00000000 00000000 0000 ..............
```
After this patch:
```
Hex dump of section '.sec':
0x00000000 00000000 00000000 00000000 00000000 ................
0x00000010 00000000 00000000 00000000 0000 ..............
```
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D84640
More information about the All-commits
mailing list