summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-16 06:36:47 +0000
committerChris Lattner <sabre@nondot.org>2005-11-16 06:36:47 +0000
commitd5bd52ca480d914845c31185b9fe10449de505b8 (patch)
tree89f0f0c10129e259e10fd5e5d1963214d4560079 /lib/Support
parenta560fb6a39fff65f34440e6aca58c61b78c1bb50 (diff)
downloadllvm-d5bd52ca480d914845c31185b9fe10449de505b8.tar.gz
llvm-d5bd52ca480d914845c31185b9fe10449de505b8.tar.bz2
llvm-d5bd52ca480d914845c31185b9fe10449de505b8.tar.xz
indicate when a tool is a debug build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/CommandLine.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index b53706f168..95887e3c08 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -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);
}