]> granicus.if.org Git - llvm/commitdiff
[llvm-objdump] Accept and ignore --wide/-w
authorFangrui Song <maskray@google.com>
Wed, 10 Apr 2019 04:46:01 +0000 (04:46 +0000)
committerFangrui Song <maskray@google.com>
Wed, 10 Apr 2019 04:46:01 +0000 (04:46 +0000)
This is similar to what we do for llvm-readobj (--wide/-W is for GNU
readelf compatibility).

The test will be added in D60376.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358043 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvm-objdump/llvm-objdump.cpp

index b2068f809e687cbebca233cae68b00749b20eaae..ceefe47404db380060c624285da731448665ac21 100644 (file)
@@ -303,6 +303,10 @@ static cl::alias
                              cl::CommaSeparated,
                              cl::aliasopt(DisassemblerOptions));
 
+static cl::opt<bool>
+    Wide("wide", cl::desc("Ignored for compatibility with GNU objdump"));
+static cl::alias WideShort("w", cl::Grouping, cl::aliasopt(Wide));
+
 static StringRef ToolName;
 
 typedef std::vector<std::tuple<uint64_t, StringRef, uint8_t>> SectionSymbolsTy;