Use LLVM_ENABLE_DUMP for the variables used in printing as well as the
[oota-llvm.git] / lib / Transforms / Scalar / SROA.cpp
index 79fab3d6cfbe47691d1b35819fe3cdc48d58bc90..09dff2728d2c3aa739c440cc096c343cc27f269b 100644 (file)
@@ -334,7 +334,7 @@ private:
   class UseBuilder;
   friend class AllocaPartitioning::UseBuilder;
 
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
   /// \brief Handle to alloca instruction to simplify method interfaces.
   AllocaInst &AI;
 #endif
@@ -1126,7 +1126,7 @@ void AllocaPartitioning::splitAndMergePartitions() {
 
 AllocaPartitioning::AllocaPartitioning(const DataLayout &TD, AllocaInst &AI)
     :
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
       AI(AI),
 #endif
       PointerEscapingInstr(0) {