mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-07 19:19:26 +00:00
[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
This commit is contained in:
parent
ba72b708c1
commit
3134cebe28
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user