[llvm] 5c3ec7d - [llvm-objdump] Require long options to use double-dash --long-option
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 15 18:01:59 PDT 2020
Author: Fangrui Song
Date: 2020-03-15T18:01:11-07:00
New Revision: 5c3ec7dc41f3e15c39a193b45f3cf23255de00a2
URL: https://github.com/llvm/llvm-project/commit/5c3ec7dc41f3e15c39a193b45f3cf23255de00a2
DIFF: https://github.com/llvm/llvm-project/commit/5c3ec7dc41f3e15c39a193b45f3cf23255de00a2.diff
LOG: [llvm-objdump] Require long options to use double-dash --long-option
As announced here: http://lists.llvm.org/pipermail/llvm-dev/2019-April/131786.html
Added:
Modified:
llvm/tools/llvm-objdump/llvm-objdump.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp
index 69f437fcc063..1cfd06d2cef5 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.cpp
+++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp
@@ -2339,7 +2339,9 @@ int main(int argc, char **argv) {
// Register the target printer for --version.
cl::AddExtraVersionPrinter(TargetRegistry::printRegisteredTargetsForVersion);
- cl::ParseCommandLineOptions(argc, argv, "llvm object file dumper\n");
+ cl::ParseCommandLineOptions(argc, argv, "llvm object file dumper\n", nullptr,
+ /*EnvVar=*/nullptr,
+ /*LongOptionsUseDoubleDash=*/true);
if (StartAddress >= StopAddress)
reportCmdLineError("start address should be less than stop address");
More information about the llvm-commits
mailing list