From: Chris Lattner Date: Tue, 12 Aug 2003 20:46:50 +0000 (+0000) Subject: Reenable optimized build X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=33fbad7024f5c58f201bef4c166bad8dcbf01a3e;p=oota-llvm.git Reenable optimized build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7788 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Debug.cpp b/lib/Support/Debug.cpp index 57ed27a5b95..f87cddfe4e8 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 } diff --git a/support/lib/Support/Debug.cpp b/support/lib/Support/Debug.cpp index 57ed27a5b95..f87cddfe4e8 100644 --- a/support/lib/Support/Debug.cpp +++ b/support/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 }