Skip to content

Commit 5f2b5cd

Browse files
committed
[llvm-objdump] Accept and ignore --wide/-w
This is similar to what we do for llvm-readobj (--wide/-W is for GNU readelf compatibility). The test will be added in D60376. llvm-svn: 358043
1 parent a49c95e commit 5f2b5cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ static cl::alias
303303
cl::CommaSeparated,
304304
cl::aliasopt(DisassemblerOptions));
305305

306+
static cl::opt<bool>
307+
Wide("wide", cl::desc("Ignored for compatibility with GNU objdump"));
308+
static cl::alias WideShort("w", cl::Grouping, cl::aliasopt(Wide));
309+
306310
static StringRef ToolName;
307311

308312
typedef std::vector<std::tuple<uint64_t, StringRef, uint8_t>> SectionSymbolsTy;

0 commit comments

Comments
 (0)