[PATCH] D38972: Add the /v option which prints out the LLD version string.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 16 13:51:37 PDT 2017
ruiu updated this revision to Diff 119207.
ruiu added a comment.
- Removed /v
- Added the version string to help message
https://reviews.llvm.org/D38972
Files:
lld/COFF/DriverUtils.cpp
lld/test/COFF/help.test
lld/test/COFF/linkenv.test
Index: lld/test/COFF/linkenv.test
===================================================================
--- lld/test/COFF/linkenv.test
+++ lld/test/COFF/linkenv.test
@@ -1,4 +1,4 @@
# RUN: env LINK=-help lld-link | FileCheck %s
# RUN: env _LINK_=-help lld-link | FileCheck %s
-CHECK: OVERVIEW: LLVM Linker
+CHECK: OVERVIEW: LLD
Index: lld/test/COFF/help.test
===================================================================
--- lld/test/COFF/help.test
+++ lld/test/COFF/help.test
@@ -1,3 +1,3 @@
# RUN: lld-link /help | FileCheck %s
-CHECK: OVERVIEW: LLVM Linker
+CHECK: OVERVIEW: LLD
Index: lld/COFF/DriverUtils.cpp
===================================================================
--- lld/COFF/DriverUtils.cpp
+++ lld/COFF/DriverUtils.cpp
@@ -18,6 +18,7 @@
#include "Error.h"
#include "Memory.h"
#include "Symbols.h"
+#include "lld/Common/Version.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/BinaryFormat/COFF.h"
@@ -767,7 +768,7 @@
void printHelp(const char *Argv0) {
COFFOptTable Table;
- Table.PrintHelp(outs(), Argv0, "LLVM Linker", false);
+ Table.PrintHelp(outs(), Argv0, getLLDVersion().c_str(), false);
}
} // namespace coff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38972.119207.patch
Type: text/x-patch
Size: 1202 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171016/14448a03/attachment.bin>
More information about the llvm-commits
mailing list