[all-commits] [llvm/llvm-project] 3cd1e7: [llvm-objdump] Add -mllvm (#75892)
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Dec 19 00:52:52 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3cd1e739095b3a0b01bf5445c0fcc212dcf62963
https://github.com/llvm/llvm-project/commit/3cd1e739095b3a0b01bf5445c0fcc212dcf62963
Author: Fangrui Song <i at maskray.me>
Date: 2023-12-19 (Tue, 19 Dec 2023)
Changed paths:
M llvm/docs/CommandGuide/llvm-objdump.rst
A llvm/test/tools/llvm-objdump/mllvm.s
M llvm/tools/llvm-objdump/ObjdumpOpts.td
M llvm/tools/llvm-objdump/llvm-objdump.cpp
Log Message:
-----------
[llvm-objdump] Add -mllvm (#75892)
When llvm-objdump switched from cl:: to OptTable
(https://reviews.llvm.org/D100433), we dropped support for LLVM cl::
options. Some LLVM_DEBUG in `llvm/lib/Target/$target/MCDisassembler/`
files might be useful. Add -mllvm to allow dumping the information.
```
# -debug is available in an LLVM_ENABLE_ASSERTIONS=on build
llvm-objdump -d -mllvm -debug a.o > /dev/null
```
Link:
https://discourse.llvm.org/t/how-to-enable-debug-logs-in-llvm-objdump/75758
More information about the All-commits
mailing list