aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/LevelRaise.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-05 06:40:17 +0000
committerChris Lattner <sabre@nondot.org>2001-12-05 06:40:17 +0000
commitf1d65214122f83e83e6616097fe3d8a4dcf697bc (patch)
tree2862bd7e111bc99239680a62c0b5aca04947a1d3 /lib/Transforms/LevelRaise.cpp
parente04a967e7e9eb1add857fdc307a3db66caa1a639 (diff)
Hrm, don't do debugging output when debugging is off. :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/LevelRaise.cpp')
-rw-r--r--lib/Transforms/LevelRaise.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index 886c7bdcf3..f155c50709 100644
--- a/lib/Transforms/LevelRaise.cpp
+++ b/lib/Transforms/LevelRaise.cpp
@@ -637,9 +637,9 @@ static bool DoInsertArrayCasts(Method *M) {
// TODO: insert casts for alloca, malloc, and function call results. Also,
// look for pointers that already have casts, to add to the map.
- if (Changed) {
- cerr << "Inserted casts:\n" << M;
- }
+#ifdef DEBUG_PEEPHOLE_INSTS
+ if (Changed) cerr << "Inserted casts:\n" << M;
+#endif
return Changed;
}