aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/RegionInfo.cpp
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2012-09-06 19:55:56 +0000
committerManman Ren <mren@apple.com>2012-09-06 19:55:56 +0000
commitcc77eece74c8db09acc2af425e7e6c88a5bb30d1 (patch)
treefcdc8d3ddb7ffe93d8129485a2068c6dfeaac9fd /lib/Analysis/RegionInfo.cpp
parentc8ecb401caefc5fb97b20041544d8da5d8e2f830 (diff)
downloadexternal_llvm-cc77eece74c8db09acc2af425e7e6c88a5bb30d1.zip
external_llvm-cc77eece74c8db09acc2af425e7e6c88a5bb30d1.tar.gz
external_llvm-cc77eece74c8db09acc2af425e7e6c88a5bb30d1.tar.bz2
Release build: guard dump functions with "ifndef NDEBUG"
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163344 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RegionInfo.cpp')
-rw-r--r--lib/Analysis/RegionInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/RegionInfo.cpp b/lib/Analysis/RegionInfo.cpp
index ea5bf02..0f9a8b3 100644
--- a/lib/Analysis/RegionInfo.cpp
+++ b/lib/Analysis/RegionInfo.cpp
@@ -427,9 +427,11 @@ void Region::print(raw_ostream &OS, bool print_tree, unsigned level,
OS.indent(level*2) << "} \n";
}
+#ifndef NDEBUG
void Region::dump() const {
print(dbgs(), true, getDepth(), printStyle.getValue());
}
+#endif
void Region::clearNodeCache() {
// Free the cached nodes.