[llvm] [llvm-objdump] Add the --visualize-jumps option (PR #74858)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 08:25:08 PST 2023
================
@@ -0,0 +1,69 @@
+// RUN: llvm-mc < %s -triple aarch64 -filetype=obj | \
+// RUN: llvm-objdump --triple aarch64 -d --visualize-jumps=unicode - | \
+// RUN: diff - %p/Inputs/visualize-jumps-aarch64-unicode.txt
----------------
ostannard wrote:
I used FileCheck for testing similar output with --debug-vars and was never very happy with that, because the disassembly contains tabs, so the output ends up getting misaligned in the text editor. I did it this way so that column 0 of the expected output is at column 0 of the test file, so the test looks exactly like the output.
Thanks for pointing out split-file, I didn't know about that. That looks like the best solution to this, so I'll switch the tests over to using it.
https://github.com/llvm/llvm-project/pull/74858
More information about the llvm-commits
mailing list