diff options
author | Fangrui Song <maskray@google.com> | 2019-04-16 03:56:55 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-16 03:56:55 +0000 |
commit | fa860ff733c9b88a1989b95a787670480fb162de (patch) | |
tree | ed704c3c16c9fe65f2522f6b18271dff8077616e /llvm/lib/Support/TimeProfiler.cpp | |
parent | f10065b68bedff2ae133711123d6d77628d7a0d6 (diff) | |
download | bcm5719-llvm-fa860ff733c9b88a1989b95a787670480fb162de.tar.gz bcm5719-llvm-fa860ff733c9b88a1989b95a787670480fb162de.zip |
[llvm-objdump] Align instructions to a tab stop in disassembly output
This relands D60376/rL358405, with the difference: sed 'y/\t/ /' -> tr '\t' ' '
BSD sed doesn't support escape characters for the 'y' command.
I didn't use it in rL358405 because it was not listed at
https://llvm.org/docs/GettingStarted.html#software but it
should be available.
Original description:
In GNU objdump, -w/--wide aligns instructions in the disassembly output.
This patch does the same to llvm-objdump. However, we always use the
wide format (-w/--wide is ignored), because the narrow format
(instructions are misaligned) is probably not very useful.
In llvm-readobj, we made a similar decision: always use the wide format,
accept but ignore -W/--wide.
To save some columns, we change the tab before hex bytes (controlled by
--[no-]show-raw-insn) to a space.
llvm-svn: 358474
Diffstat (limited to 'llvm/lib/Support/TimeProfiler.cpp')
0 files changed, 0 insertions, 0 deletions