summaryrefslogtreecommitdiffstats
path: root/contrib/llvm
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-06-12 15:13:36 +0000
committered <ed@FreeBSD.org>2010-06-12 15:13:36 +0000
commit2de547ee0f5a2ebd61fc1aa8932042043bbf680f (patch)
tree73b217e0a3af5355f1304ab49f39b70ad5536d1b /contrib/llvm
parentbbe91d0e0f42157f62abeae4e5e6ce4c66e1dace (diff)
downloadFreeBSD-src-2de547ee0f5a2ebd61fc1aa8932042043bbf680f.zip
FreeBSD-src-2de547ee0f5a2ebd61fc1aa8932042043bbf680f.tar.gz
Do the branding right this time.
I've looked at other places in the source tree where CLANG_VENDOR is used and I suspect it might not be safe to use newlines here. CLANG_VENDOR should just be defined to "FreeBSD ", just like the latest Clang preview in OS X uses "Apple ". Properly use SVN_REVISION to define it to the imported revision of Clang. I do want to have a date in there, so slightly modify the code to support CLANG_VENDOR_SUFFIX.
Diffstat (limited to 'contrib/llvm')
-rw-r--r--contrib/llvm/tools/clang/lib/Basic/Version.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/lib/Basic/Version.cpp b/contrib/llvm/tools/clang/lib/Basic/Version.cpp
index e0c2336..86c5e55 100644
--- a/contrib/llvm/tools/clang/lib/Basic/Version.cpp
+++ b/contrib/llvm/tools/clang/lib/Basic/Version.cpp
@@ -70,6 +70,9 @@ std::string getClangFullVersion() {
#endif
OS << "clang version " CLANG_VERSION_STRING " ("
<< getClangFullRepositoryVersion() << ')';
+#ifdef CLANG_VENDOR_SUFFIX
+ OS << CLANG_VENDOR_SUFFIX;
+#endif
return OS.str();
}
OpenPOWER on IntegriCloud