indicate when a tool is a debug build.

llvm-svn: 24374
This commit is contained in:
Chris Lattner 2005-11-16 06:36:47 +00:00
parent 4ca13b3f47
commit fdc8b19ad6
1 changed files with 6 additions and 1 deletions

View File

@ -941,7 +941,12 @@ public:
void operator=(bool OptionWasSpecified) {
if (OptionWasSpecified) {
std::cerr << "Low Level Virtual Machine (" << PACKAGE_NAME << ") "
<< PACKAGE_VERSION << " (see http://llvm.cs.uiuc.edu/)\n";
<< PACKAGE_VERSION << " (see http://llvm.org/)";
#ifndef NDEBUG
std::cerr << " DEBUG BUILD\n";
#else
std::cerr << "\n";
#endif
getOpts().clear(); // Don't bother making option dtors remove from map.
exit(1);
}