1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/tools/llvm-objdump
Nico Weber 691c156cc8 [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable
This is similar to D83530, but for llvm-objdump.

The motivation is the desire to add an `llvm-otool` symlink to
llvm-objdump that behaves like macOS's `otool`, using the same
technique the at llvm-objcopy uses to behave like `strip` (etc).

This change for the most part preserves behavior. In some cases,
it increases compatibility with GNU objdump a bit. For example,
the long options now require two dashes, and the long options
taking arguments for the most part now require a `=` in front
of the value. Exceptions are flags where tests passed the
value separately, for these the separate form is kept as
an alias to the = form.

The one-letter short form args are now joined or separate
and long longer accept a =, which also matches GNU objdump.

cl::opt<>s in libraries now have to be explicitly plumbed
through. This patch does that for --x86-asm-syntax=, but
there's hope that we can remove that again.

Differential Revision: https://reviews.llvm.org/D100433
2021-04-14 20:12:24 -04:00
..
CMakeLists.txt [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
COFFDump.cpp [llvm-objdump] Use append_range (NFC) 2021-01-26 20:00:19 -08:00
COFFDump.h [llvm-objdump][COFF][NFC] Split format-specific interfaces; add namespace 2020-04-02 18:42:13 -04:00
ELFDump.cpp [lib/Object] - Make ELFObjectFile::getSymbol() return Expected<>. 2020-12-16 13:14:23 +03:00
ELFDump.h [llvm-objdump][ELF][NFC] Create ELFDump.h 2020-04-23 21:24:37 -04:00
llvm-objdump.cpp [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
llvm-objdump.h [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
MachODump.cpp [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
MachODump.h [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
ObjdumpOptID.h [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
ObjdumpOpts.td [llvm-objdump] Switch command-line parsing from llvm::cl to OptTable 2021-04-14 20:12:24 -04:00
WasmDump.cpp [llvm-objdump][Wasm][NFC] Create WasmDump.h 2020-04-14 18:26:24 -04:00
WasmDump.h [llvm-objdump][Wasm][NFC] Create WasmDump.h 2020-04-14 18:26:24 -04:00
XCOFFDump.cpp [llvm-objdump][XCOFF] Print more symbol info in relocation 2020-04-22 13:52:08 +00:00
XCOFFDump.h [llvm-objdump][XCOFF] Print more symbol info in relocation 2020-04-22 13:52:08 +00:00