summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit291675b34d3c304bcfe271af90d1624c06c0c1b7 (patch)
treea71437b3988fbd47e141af61bf507d9c138c32ee /llvm/lib/Support/Debug.cpp
parent58c7eb60ecdd3c093ed28b4c96fdb7c83bd862e7 (diff)
downloadbcm5719-llvm-291675b34d3c304bcfe271af90d1624c06c0c1b7.tar.gz
bcm5719-llvm-291675b34d3c304bcfe271af90d1624c06c0c1b7.zip
Reenable optimized build
llvm-svn: 7788
Diffstat (limited to 'llvm/lib/Support/Debug.cpp')
-rw-r--r--llvm/lib/Support/Debug.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Support/Debug.cpp b/llvm/lib/Support/Debug.cpp
index 57ed27a5b95..f87cddfe4e8 100644
--- a/llvm/lib/Support/Debug.cpp
+++ b/llvm/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
}
OpenPOWER on IntegriCloud