[llvm] r267774 - Fix build failure under NDEBUG.
Than McIntosh via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 27 13:07:02 PDT 2016
Author: thanm
Date: Wed Apr 27 15:07:02 2016
New Revision: 267774
URL: http://llvm.org/viewvc/llvm-project?rev=267774&view=rev
Log:
Fix build failure under NDEBUG.
Modified:
llvm/trunk/lib/CodeGen/StackColoring.cpp
Modified: llvm/trunk/lib/CodeGen/StackColoring.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackColoring.cpp?rev=267774&r1=267773&r2=267774&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackColoring.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackColoring.cpp Wed Apr 27 15:07:02 2016
@@ -190,6 +190,8 @@ void StackColoring::getAnalysisUsage(Ana
MachineFunctionPass::getAnalysisUsage(AU);
}
+#ifndef NDEBUG
+
LLVM_DUMP_METHOD void StackColoring::dumpBV(const char *tag,
const BitVector &BV) const {
DEBUG(dbgs() << tag << " : { ");
@@ -224,6 +226,8 @@ LLVM_DUMP_METHOD void StackColoring::dum
}
}
+#endif // not NDEBUG
+
unsigned StackColoring::collectMarkers(unsigned NumSlot) {
unsigned MarkersFound = 0;
// Scan the function to find all lifetime markers.
More information about the llvm-commits
mailing list