From d5bd52ca480d914845c31185b9fe10449de505b8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 16 Nov 2005 06:36:47 +0000 Subject: [PATCH] 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 --- lib/Support/CommandLine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index b53706f1684..95887e3c08d 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); }