[llvm-commits] [llvm] r168362 - /llvm/trunk/lib/Transforms/Scalar/SROA.cpp
Chandler Carruth
chandlerc at gmail.com
Tue Nov 20 02:23:07 PST 2012
Author: chandlerc
Date: Tue Nov 20 04:23:07 2012
New Revision: 168362
URL: http://llvm.org/viewvc/llvm-project?rev=168362&view=rev
Log:
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...)
Modified:
llvm/trunk/lib/Transforms/Scalar/SROA.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SROA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SROA.cpp?rev=168362&r1=168361&r2=168362&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SROA.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SROA.cpp Tue Nov 20 04:23:07 2012
@@ -334,7 +334,7 @@
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 @@
AllocaPartitioning::AllocaPartitioning(const DataLayout &TD, AllocaInst &AI)
:
-#ifndef NDEBUG
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
AI(AI),
#endif
PointerEscapingInstr(0) {
More information about the llvm-commits
mailing list