summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-06 18:33:03 +0000
committerChris Lattner <sabre@nondot.org>2006-07-06 18:33:03 +0000
commit8ac22e748ce289c494aa437f5520ddf87ac3e4a9 (patch)
tree4037130cf1aaa4b4a1856123afa2359044e53ac0 /llvm/lib/Support/CommandLine.cpp
parent5734e8d7c38778e6e0575f80353ba8327b412947 (diff)
downloadbcm5719-llvm-8ac22e748ce289c494aa437f5520ddf87ac3e4a9.tar.gz
bcm5719-llvm-8ac22e748ce289c494aa437f5520ddf87ac3e4a9.zip
Print LLVM version info like this:
Low Level Virtual Machine (http://llvm.org/): llvm version 1.8cvs DEBUG build with assertions. instead of like this: Low Level Virtual Machine (llvm) 1.8cvs (see http://llvm.org/) ASSERTIONS ENABLED Also, add a place for vendor version info. llvm-svn: 29020
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp18
1 files changed, 13 insertions, 5 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 4b3a1d8f7d2..164cb5286f3 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -972,13 +972,21 @@ public:
void operator=(bool OptionWasSpecified) {
if (OptionWasSpecified) {
if (OverrideVersionPrinter == 0) {
- std::cout << "Low Level Virtual Machine (" << PACKAGE_NAME << ") "
- << PACKAGE_VERSION << " (see http://llvm.org/)";
-#ifndef NDEBUG
- std::cout << " ASSERTIONS ENABLED\n";
+ std::cout << "Low Level Virtual Machine (http://llvm.org/):\n";
+ std::cout << " " << PACKAGE_NAME << " version " << PACKAGE_VERSION;
+#ifdef LLVM_VERSION_INFO
+ std::cout << LLVM_VERSION_INFO;
+#endif
+ std::cout << "\n ";
+#ifndef __OPTIMIZE__
+ std::cout << "DEBUG build";
#else
- std::cout << "\n";
+ std::cout << "Optimized build";
+#endif
+#ifndef NDEBUG
+ std::cout << " with assertions";
#endif
+ std::cout << ".\n";
getOpts().clear(); // Don't bother making option dtors remove from map.
exit(1);
} else {
OpenPOWER on IntegriCloud