Previously lld showed version number and returned,
that is different from ld and PR28999.
Patch fixed that.
llvm-svn: 278797
printHelp(ArgsArr[0]);
return;
}
- if (Args.hasArg(OPT_version)) {
+ if (Args.hasArg(OPT_version))
outs() << getVersionString();
- return;
- }
if (const char *Path = getReproduceOption(Args)) {
// Note that --reproduce is a debug option so you can ignore it
# RUN: ld.lld --help 2>&1 | FileCheck -check-prefix=HELP %s
# HELP: USAGE:
-# RUN: ld.lld --version 2>&1 | FileCheck -check-prefix=VERSION %s
+# RUN: not ld.lld --version 2>&1 | FileCheck -check-prefix=VERSION %s
# VERSION: LLD
## Attempt to link DSO with -r