aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2021-06-28 14:23:22 +0700
committerIgor Kudrin <ikudrin@accesssoftek.com>2021-06-28 14:25:21 +0700
commitc2e6bcb494c12b138283272e2e0932e13627898e (patch)
tree3e61b6fef004ea84e07935cb4901dc0b90373d0d /llvm/tools/llvm-objdump/llvm-objdump.cpp
parentabe0fa43523502c549ff9394d28f9f29f5be0a3d (diff)
downloadllvm-c2e6bcb494c12b138283272e2e0932e13627898e.zip
llvm-c2e6bcb494c12b138283272e2e0932e13627898e.tar.gz
llvm-c2e6bcb494c12b138283272e2e0932e13627898e.tar.bz2
[llvm-objdump] Prevent variable locations to overlap short comments
For now, the source variable locations are printed at about the same space as the comments for disassembled code, which can make some ranges for variables disappear if a line contains comments, for example: ┠─ bar = W1 0: add x0, x2, #2, lsl #12 // =8192┃ 4: add z31.d, z31.d, #65280 // =0xff00 8: nop ┻ The patch shifts the report a bit to allow printing comments up to approximately 16 characters without interferences. Differential Revision: https://reviews.llvm.org/D104700
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 13e5f68..0fd388d 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -221,7 +221,7 @@ uint32_t objdump::PrefixStrip;
DebugVarsFormat objdump::DbgVariables = DVDisabled;
-int objdump::DbgIndent = 40;
+int objdump::DbgIndent = 52;
static StringSet<> DisasmSymbolSet;
StringSet<> objdump::FoundSectionSet;