summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Version.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-06 06:58:25 +0000
committerAlp Toker <alp@nuanti.com>2014-06-06 06:58:25 +0000
commit420d7ccbac0f499a6ff9595bdbfa99cd3376df22 (patch)
treef77dbd93138c02409ada2f543d37932b17fb6a57 /clang/lib/Basic/Version.cpp
parent3217b6c66195ba593c9caa428c1c911f85998f00 (diff)
downloadbcm5719-llvm-420d7ccbac0f499a6ff9595bdbfa99cd3376df22.tar.gz
bcm5719-llvm-420d7ccbac0f499a6ff9595bdbfa99cd3376df22.zip
Devise a package-private means to determine the LLVM version string
This will unbreak clang vendor builds as a follow-up to r210238, now that we can't poke into LLVM's private config.h (nor should the string be exposed by llvm-config.h). This hopefully removes for good the last include of LLVM's config.h. llvm-svn: 210313
Diffstat (limited to 'clang/lib/Basic/Version.cpp')
-rw-r--r--clang/lib/Basic/Version.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/Version.cpp b/clang/lib/Basic/Version.cpp
index ae32c011396..c2b7753d412 100644
--- a/clang/lib/Basic/Version.cpp
+++ b/clang/lib/Basic/Version.cpp
@@ -13,7 +13,7 @@
#include "clang/Basic/Version.h"
#include "clang/Basic/LLVM.h"
-#include "llvm/Config/config.h"
+#include "clang/Config/config.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdlib>
#include <cstring>
@@ -130,7 +130,7 @@ std::string getClangToolFullVersion(StringRef ToolName) {
// If vendor supplied, include the base LLVM version as well.
#ifdef CLANG_VENDOR
- OS << " (based on LLVM " << PACKAGE_VERSION << ")";
+ OS << " (based on " << BACKEND_PACKAGE_STRING << ")";
#endif
return OS.str();
OpenPOWER on IntegriCloud