Use LLVM_ENABLE_DUMP for the variables used in printing as well as the

printing functions themselves.

Part of PR14324 (which should have just been a patch to the list, but
hey...)

llvm-svn: 168362
This commit is contained in:
Chandler Carruth 2012-11-20 10:23:07 +00:00
parent 3e994a26e2
commit b7915f7fbf
1 changed files with 2 additions and 2 deletions

View 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) {