[PATCH] D58411: Update `ld.lld --version` string for monorepo.

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 19 23:27:03 PST 2019


mgorny added inline comments.


================
Comment at: lld/Common/Version.cpp:19
 
-// Returns an SVN repository name, e.g., " (trunk 284614)"
-// or an empty string if no repository info is available.
-static std::string getRepository() {
-  std::string Repo = getRepositoryPath();
-  std::string Rev = LLD_REVISION_STRING;
-
-  if (Repo.empty() && Rev.empty())
-    return "";
-  if (!Repo.empty() && !Rev.empty())
-    return " (" + Repo + " " + Rev + ")";
-  return " (" + Repo + Rev + ")";
-}
+using namespace llvm;
 
----------------
Are you actually using it?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D58411/new/

https://reviews.llvm.org/D58411





More information about the llvm-commits mailing list