summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-06 10:36:22 +0000
committerAlp Toker <alp@nuanti.com>2014-06-06 10:36:22 +0000
commitf988d006823027593c42fd49f1cfed2c50068005 (patch)
tree5fea9b617c635a4228872b22578463393a615015 /clang/lib/Frontend/CompilerInstance.cpp
parentf419931fa3a120e23ac0c1f536ab6209f70e7d9d (diff)
downloadbcm5719-llvm-f988d006823027593c42fd49f1cfed2c50068005.tar.gz
bcm5719-llvm-f988d006823027593c42fd49f1cfed2c50068005.zip
Revert "Revert "Devise a package-private means to determine the LLVM version string""
We probably just need to touch LLVM's configure this time to work around the totally inadequate Makefile build server integration. This reverts commit r210314. llvm-svn: 210320
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index a967c0ab546..f5e2749a718 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -16,6 +16,7 @@
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/Version.h"
+#include "clang/Config/config.h"
#include "clang/Frontend/ChainedDiagnosticConsumer.h"
#include "clang/Frontend/FrontendAction.h"
#include "clang/Frontend/FrontendActions.h"
@@ -709,9 +710,7 @@ bool CompilerInstance::ExecuteAction(FrontendAction &Act) {
// Validate/process some options.
if (getHeaderSearchOpts().Verbose)
OS << "clang -cc1 version " CLANG_VERSION_STRING
-#ifdef PACKAGE_STRING
- << " based upon " << PACKAGE_STRING
-#endif
+ << " based upon " << BACKEND_PACKAGE_STRING
<< " default target " << llvm::sys::getDefaultTargetTriple() << "\n";
if (getFrontendOpts().ShowTimers)
OpenPOWER on IntegriCloud