Author: dgregor
Date: Fri Mar  5 15:48:53 2010
New Revision: 97835

URL: http://llvm.org/viewvc/llvm-project?rev=97835&view=rev
Log:
Switch from NDEBUG to _DEBUG, since our Windows build is funny

Modified:
    cfe/trunk/include/clang/Frontend/ASTUnit.h
    cfe/trunk/lib/Frontend/ASTUnit.cpp

Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/ASTUnit.h?rev=97835&r1=97834&r2=97835&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/ASTUnit.h (original)
+++ cfe/trunk/include/clang/Frontend/ASTUnit.h Fri Mar  5 15:48:53 2010
@@ -89,7 +89,7 @@
   /// destroyed.
   llvm::SmallVector<llvm::sys::Path, 4> 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 @@
   
 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;
     }

Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=97835&r1=97834&r2=97835&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Fri Mar  5 15:48:53 2010
@@ -39,7 +39,7 @@
   : MainFileIsAST(_MainFileIsAST), ConcurrencyCheckValue(CheckUnlocked) {
 }
 ASTUnit::~ASTUnit() {
-#ifndef NDEBUG
+#ifdef _DEBUG
   ConcurrencyCheckValue = CheckLocked;
 #endif
   for (unsigned I = 0, N = TemporaryFiles.size(); I != N; ++I)


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to