summaryrefslogtreecommitdiff
path: root/lib/Support/Debug.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-12 20:46:50 +0000
committerChris Lattner <sabre@nondot.org>2003-08-12 20:46:50 +0000
commit33fbad7024f5c58f201bef4c166bad8dcbf01a3e (patch)
treeec7989c3a0207bdcb2cf60d4dc0072d1369cc281 /lib/Support/Debug.cpp
parent6007cb6c4d923e2dee4a1133fb6d1bb00a37062d (diff)
downloadllvm-33fbad7024f5c58f201bef4c166bad8dcbf01a3e.tar.gz
llvm-33fbad7024f5c58f201bef4c166bad8dcbf01a3e.tar.bz2
llvm-33fbad7024f5c58f201bef4c166bad8dcbf01a3e.tar.xz
Reenable optimized build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7788 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Debug.cpp')
-rw-r--r--lib/Support/Debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp
index 57ed27a5b9..f87cddfe4e 100644
--- a/lib/Support/Debug.cpp
+++ b/lib/Support/Debug.cpp
@@ -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
}