summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackColoring.cpp
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2016-04-27 20:07:02 +0000
committerThan McIntosh <thanm@google.com>2016-04-27 20:07:02 +0000
commita54132090831711da0b2c96869b48539de2e09a1 (patch)
tree6a26f82afa7f68149181a1ccdddd59f91cdb4072 /llvm/lib/CodeGen/StackColoring.cpp
parentc378a99ba52f3e2ec266fc2b5f0ef2d552da37a6 (diff)
downloadbcm5719-llvm-a54132090831711da0b2c96869b48539de2e09a1.tar.gz
bcm5719-llvm-a54132090831711da0b2c96869b48539de2e09a1.zip
Fix build failure under NDEBUG.
llvm-svn: 267774
Diffstat (limited to 'llvm/lib/CodeGen/StackColoring.cpp')
-rw-r--r--llvm/lib/CodeGen/StackColoring.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/StackColoring.cpp b/llvm/lib/CodeGen/StackColoring.cpp
index 54f0f2b9e08..ae6d7e285fb 100644
--- a/llvm/lib/CodeGen/StackColoring.cpp
+++ b/llvm/lib/CodeGen/StackColoring.cpp
@@ -190,6 +190,8 @@ void StackColoring::getAnalysisUsage(AnalysisUsage &AU) const {
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::dumpIntervals() const {
}
}
+#endif // not NDEBUG
+
unsigned StackColoring::collectMarkers(unsigned NumSlot) {
unsigned MarkersFound = 0;
// Scan the function to find all lifetime markers.
OpenPOWER on IntegriCloud