1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[dsymutil] Re-add command line option -v this time printing the version.

llvm-svn: 243584
This commit is contained in:
Frederic Riss 2015-07-29 22:29:50 +00:00
parent 21dc39920f
commit 5d7809425a

View File

@ -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);