Reenable optimized build
authorChris Lattner <sabre@nondot.org>
Tue, 12 Aug 2003 20:46:50 +0000 (20:46 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 12 Aug 2003 20:46:50 +0000 (20:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7788 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Debug.cpp
support/lib/Support/Debug.cpp

index 57ed27a5b9554cbdd0fa53fc0d19b79db2f0246c..f87cddfe4e84a54c93fdbd94c34a0ead3498fc10 100644 (file)
@@ -49,5 +49,9 @@ namespace {
 // with the -debug-only=X option.
 //
 bool isCurrentDebugType(const char *DebugType) {
+#ifndef NDEBUG
   return CurrentDebugType.empty() || DebugType == CurrentDebugType;
+#else
+  return false;
+#endif
 }
index 57ed27a5b9554cbdd0fa53fc0d19b79db2f0246c..f87cddfe4e84a54c93fdbd94c34a0ead3498fc10 100644 (file)
@@ -49,5 +49,9 @@ namespace {
 // with the -debug-only=X option.
 //
 bool isCurrentDebugType(const char *DebugType) {
+#ifndef NDEBUG
   return CurrentDebugType.empty() || DebugType == CurrentDebugType;
+#else
+  return false;
+#endif
 }