From 1e1973c0ebc5d2e17065c54f45ace43f7fa00d1a Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 5 Mar 2010 21:48:53 +0000 Subject: Switch from NDEBUG to _DEBUG, since our Windows build is funny llvm-svn: 97835 --- clang/include/clang/Frontend/ASTUnit.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'clang/include') diff --git a/clang/include/clang/Frontend/ASTUnit.h b/clang/include/clang/Frontend/ASTUnit.h index dca71cffeca..70a1b2bb162 100644 --- a/clang/include/clang/Frontend/ASTUnit.h +++ b/clang/include/clang/Frontend/ASTUnit.h @@ -89,7 +89,7 @@ class ASTUnit { /// destroyed. llvm::SmallVector TemporaryFiles; -#ifndef NDEBUG +#ifdef _DEBUG /// \brief Simple hack to allow us to assert that ASTUnit is not being /// used concurrently, which is not supported. /// @@ -106,24 +106,24 @@ class ASTUnit { public: class ConcurrencyCheck { -#ifndef NDEBUG +#ifdef _DEBUG volatile ASTUnit &Self; #endif public: explicit ConcurrencyCheck(ASTUnit &Self) -#ifndef NDEBUG +#ifdef _DEBUG : Self(Self) #endif { -#ifndef NDEBUG +#ifdef _DEBUG assert(Self.ConcurrencyCheckValue == CheckUnlocked && "Concurrent access to ASTUnit!"); Self.ConcurrencyCheckValue = CheckLocked; #endif } -#ifndef NDEBUG +#ifdef _DEBUG ~ConcurrencyCheck() { Self.ConcurrencyCheckValue = CheckUnlocked; } -- cgit v1.2.3