[PATCH] D122924: [lld] Add version info to generic driver output
Keith Smiley via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 1 10:56:59 PDT 2022
keith created this revision.
Herald added a project: All.
keith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This makes it easier to see version info without having to use a
specific shim.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D122924
Files:
lld/tools/lld/lld.cpp
Index: lld/tools/lld/lld.cpp
===================================================================
--- lld/tools/lld/lld.cpp
+++ lld/tools/lld/lld.cpp
@@ -28,6 +28,7 @@
#include "lld/Common/Driver.h"
#include "lld/Common/ErrorHandler.h"
#include "lld/Common/Memory.h"
+#include "lld/Common/Version.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringSwitch.h"
@@ -156,7 +157,8 @@
else if (f == Wasm)
return lld::wasm::link;
else
- die("lld is a generic driver.\n"
+ die("lld is a generic driver. (" + getLLDVersion() +
+ ")\n"
"Invoke ld.lld (Unix), ld64.lld (macOS), lld-link (Windows), wasm-ld"
" (WebAssembly) instead");
}();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122924.419808.patch
Type: text/x-patch
Size: 736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220401/d102de8a/attachment.bin>
More information about the llvm-commits
mailing list