[llvm] r243584 - [dsymutil] Re-add command line option -v this time printing the version.
Frederic Riss
friss at apple.com
Wed Jul 29 15:29:50 PDT 2015
Author: friss
Date: Wed Jul 29 17:29:50 2015
New Revision: 243584
URL: http://llvm.org/viewvc/llvm-project?rev=243584&view=rev
Log:
[dsymutil] Re-add command line option -v this time printing the version.
Modified:
llvm/trunk/tools/dsymutil/dsymutil.cpp
Modified: llvm/trunk/tools/dsymutil/dsymutil.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/dsymutil.cpp?rev=243584&r1=243583&r2=243584&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/dsymutil.cpp (original)
+++ llvm/trunk/tools/dsymutil/dsymutil.cpp Wed Jul 29 17:29:50 2015
@@ -29,6 +29,7 @@ using namespace llvm::cl;
OptionCategory DsymCategory("Specific Options");
static opt<bool> Help("h", desc("Alias for -help"), Hidden);
+static opt<bool> Version("v", desc("Alias for -version"), Hidden);
static opt<std::string> InputFile(Positional, desc("<input file>"),
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);
More information about the llvm-commits
mailing list