[PATCH] D60376: [llvm-objdump] Align instructions to a tab stop

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 9 23:17:29 PDT 2019


MaskRay marked 2 inline comments as done.
MaskRay added inline comments.


================
Comment at: test/tools/llvm-objdump/X86/disassemble-align.s:2
+# RUN: llvm-mc -filetype=obj -triple=x86_64 %s | \
+# RUN:   llvm-objdump -d -print-imm-hex - | sed 'y/\t/ /' | FileCheck -strict-whitespace %s
+
----------------
rupprecht wrote:
> You can include literal tabs in tests
> In some editors it is ctrl+v, then tab
I use a space to demonstrate that the column of the instruction name is not affected by the tabsize setting in the editor.

e.g. in (neo)vim, `set ts=1` `set ts=2` `set ts=4` `set ts=8` align the instruction name in the same column.

Committed `-w/--wide` in a separate change.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60376/new/

https://reviews.llvm.org/D60376





More information about the llvm-commits mailing list