summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Version.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2019-07-13 06:27:35 +0000
committerSylvestre Ledru <sylvestre@debian.org>2019-07-13 06:27:35 +0000
commit21a92a8a559ba27907290bafd181e490101a4fcb (patch)
treecd6f039ace38701b231801c4ea6ea75050560182 /clang/lib/Basic/Version.cpp
parent1447b60eeb2b3026a0c96bef052843a71002d617 (diff)
downloadbcm5719-llvm-21a92a8a559ba27907290bafd181e490101a4fcb.tar.gz
bcm5719-llvm-21a92a8a559ba27907290bafd181e490101a4fcb.zip
This reverts commit 632a36bfcfc8273c1861f04ff6758d863c47c784.
Some targets such as Python 2.7.16 still use VERSION in their builds. Without VERSION defined, the source code has syntax errors. Reverting as it will probably break many other things. Noticed by Sterling Augustine llvm-svn: 365992
Diffstat (limited to 'clang/lib/Basic/Version.cpp')
-rw-r--r--clang/lib/Basic/Version.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Basic/Version.cpp b/clang/lib/Basic/Version.cpp
index 5fd12762b68..d6564582e77 100644
--- a/clang/lib/Basic/Version.cpp
+++ b/clang/lib/Basic/Version.cpp
@@ -136,6 +136,8 @@ std::string getClangToolFullVersion(StringRef ToolName) {
}
std::string getClangFullCPPVersion() {
+ // The version string we report in __VERSION__ is just a compacted version of
+ // the one we report on the command line.
std::string buf;
llvm::raw_string_ostream OS(buf);
#ifdef CLANG_VENDOR
OpenPOWER on IntegriCloud