From 3134cebe284b6fefd4eb9412d8efd38154d9cce7 Mon Sep 17 00:00:00 2001 From: Frederic Riss Date: Wed, 29 Jul 2015 22:29:50 +0000 Subject: [PATCH] [dsymutil] Re-add command line option -v this time printing the version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243584 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/dsymutil/dsymutil.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/dsymutil/dsymutil.cpp b/tools/dsymutil/dsymutil.cpp index fee4e083053..1d5fb0ff8cf 100644 --- a/tools/dsymutil/dsymutil.cpp +++ b/tools/dsymutil/dsymutil.cpp @@ -29,6 +29,7 @@ using namespace llvm::cl; OptionCategory DsymCategory("Specific Options"); static opt Help("h", desc("Alias for -help"), Hidden); +static opt Version("v", desc("Alias for -version"), Hidden); static opt InputFile(Positional, desc(""), init("a.out"), cat(DsymCategory)); @@ -84,6 +85,11 @@ int main(int argc, char **argv) { if (Help) PrintHelpMessage(); + if (Version) { + llvm::cl::PrintVersionMessage(); + return 0; + } + auto DebugMapPtrOrErr = parseDebugMap(InputFile, OsoPrependPath, Verbose, InputIsYAMLDebugMap); -- 2.34.1