From f1d65214122f83e83e6616097fe3d8a4dcf697bc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Dec 2001 06:40:17 +0000 Subject: [PATCH] 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 --- lib/Transforms/LevelRaise.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp index 886c7bdcf35..f155c507097 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; }