[PATCH] D52129: [llvm-readobj] Make some commonly used short options visibile in -help

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 14 18:03:43 PDT 2018


MaskRay created this revision.
MaskRay added reviewers: phosek, ruiu, echristo.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D52129

Files:
  tools/llvm-readobj/llvm-readobj.cpp


Index: tools/llvm-readobj/llvm-readobj.cpp
===================================================================
--- tools/llvm-readobj/llvm-readobj.cpp
+++ tools/llvm-readobj/llvm-readobj.cpp
@@ -594,6 +594,14 @@
   // Register the target printer for --version.
   cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
 
+  // Make some commonly used short options visibile in -help.
+  opts::DynamicTableShort.setHiddenFlag(cl::NotHidden);
+  opts::FileHeadersShort.setHiddenFlag(cl::NotHidden);
+  opts::RelocationsShort.setHiddenFlag(cl::NotHidden);
+  opts::SectionsShort.setHiddenFlag(cl::NotHidden);
+  opts::SectionsShortUpper.setHiddenFlag(cl::NotHidden);
+  opts::SymbolsShort.setHiddenFlag(cl::NotHidden);
+
   opts::WideOutput.setHiddenFlag(cl::Hidden);
 
   if (sys::path::stem(argv[0]).find("readelf") != StringRef::npos)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52129.165620.patch
Type: text/x-patch
Size: 858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180915/d51314a4/attachment.bin>


More information about the llvm-commits mailing list