Mercurial > projects > ldc
diff gen/passes/SimplifyDRuntimeCalls.cpp @ 1551:ed0feda76820
DOUT is deprecated, use DEBUG(errs()) instead
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Mon, 27 Jul 2009 11:44:01 +0200 |
parents | 7fcb72d518f6 |
children | f55ca8a1598c |
line wrap: on
line diff
--- a/gen/passes/SimplifyDRuntimeCalls.cpp Sun Jul 26 19:12:37 2009 +0200 +++ b/gen/passes/SimplifyDRuntimeCalls.cpp Mon Jul 27 11:44:01 2009 +0200 @@ -28,6 +28,7 @@ #include "llvm/ADT/Statistic.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" +#include "llvm/Support/raw_ostream.h" using namespace llvm; STATISTIC(NumSimplified, "Number of runtime calls simplified"); @@ -379,7 +380,7 @@ Optimizations.find(CalleeName, CalleeName+Callee->getNameLen()); if (OMI == Optimizations.end()) continue; - DEBUG(DOUT << "SimplifyDRuntimeCalls inspecting: " << *CI); + DEBUG(errs() << "SimplifyDRuntimeCalls inspecting: " << *CI); // Set the builder to the instruction after the call. Builder.SetInsertPoint(BB, I); @@ -388,8 +389,8 @@ Value *Result = OMI->second->OptimizeCall(CI, Changed, TD, AA, Builder); if (Result == 0) continue; - DEBUG(DOUT << "SimplifyDRuntimeCalls simplified: " << *CI; - DOUT << " into: " << *Result << "\n"); + DEBUG(errs() << "SimplifyDRuntimeCalls simplified: " << *CI; + errs() << " into: " << *Result << "\n"); // Something changed! Changed = true;