summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-11-20 10:23:07 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-11-20 10:23:07 +0000
commit3a902d0ae7763e952eb2fa70e2b07ccb038ae235 (patch)
treeb4d420a6fb812dacaa9eff8c9396615b446db498 /lib/Transforms
parent176792990e1b8df4894d0dabddb735abbb254e7c (diff)
downloadllvm-3a902d0ae7763e952eb2fa70e2b07ccb038ae235.tar.gz
llvm-3a902d0ae7763e952eb2fa70e2b07ccb038ae235.tar.bz2
llvm-3a902d0ae7763e952eb2fa70e2b07ccb038ae235.tar.xz
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...) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/SROA.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp
index 79fab3d6cf..09dff2728d 100644
--- a/lib/Transforms/Scalar/SROA.cpp
+++ b/lib/Transforms/Scalar/SROA.cpp
@@ -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) {