[llvm-commits] CVS: llvm/lib/Support/CommandLine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Nov 15 22:36:58 PST 2005
Changes in directory llvm/lib/Support:
CommandLine.cpp updated: 1.63 -> 1.64
---
Log message:
indicate when a tool is a debug build.
---
Diffs of the changes: (+6 -1)
CommandLine.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/lib/Support/CommandLine.cpp
diff -u llvm/lib/Support/CommandLine.cpp:1.63 llvm/lib/Support/CommandLine.cpp:1.64
--- llvm/lib/Support/CommandLine.cpp:1.63 Mon Aug 8 16:57:27 2005
+++ llvm/lib/Support/CommandLine.cpp Wed Nov 16 00:36:47 2005
@@ -941,7 +941,12 @@
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);
}
More information about the llvm-commits
mailing list