diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-06 18:33:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-06 18:33:03 +0000 |
commit | 3fc2f4e83f3317f592c06e2ae7d9f1832210decb (patch) | |
tree | 63fe43d7f948d412d99a7cb2fb4bd106f48d5b34 /lib/Support | |
parent | 05ac92ca7d448ff9270cdeecd182653477708517 (diff) | |
download | external_llvm-3fc2f4e83f3317f592c06e2ae7d9f1832210decb.zip external_llvm-3fc2f4e83f3317f592c06e2ae7d9f1832210decb.tar.gz external_llvm-3fc2f4e83f3317f592c06e2ae7d9f1832210decb.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/CommandLine.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 4b3a1d8..164cb52 100644 --- a/lib/Support/CommandLine.cpp +++ b/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 { |