diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-23 11:37:21 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-08-23 11:37:21 +0000 |
commit | 0588d2da0980b653e2862e8742e0fa7923b9f170 (patch) | |
tree | 3b2d0a185a206d9340c40ca55c8d65386ae7e07b /lib/Transforms/Instrumentation/EdgeProfiling.cpp | |
parent | 13cb441d7c9d404bdc84f28f076014ff2856bcd2 (diff) | |
download | external_llvm-0588d2da0980b653e2862e8742e0fa7923b9f170.zip external_llvm-0588d2da0980b653e2862e8742e0fa7923b9f170.tar.gz external_llvm-0588d2da0980b653e2862e8742e0fa7923b9f170.tar.bz2 |
Kill off more cerr/cout uses and prune includes a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/EdgeProfiling.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/EdgeProfiling.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Transforms/Instrumentation/EdgeProfiling.cpp b/lib/Transforms/Instrumentation/EdgeProfiling.cpp index 2220bbf..ed9ff50 100644 --- a/lib/Transforms/Instrumentation/EdgeProfiling.cpp +++ b/lib/Transforms/Instrumentation/EdgeProfiling.cpp @@ -18,13 +18,10 @@ //===----------------------------------------------------------------------===// #include "ProfilingUtils.h" -#include "llvm/Constants.h" -#include "llvm/DerivedTypes.h" -#include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Pass.h" #include "llvm/Support/Compiler.h" -#include "llvm/Support/Streams.h" +#include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Transforms/Instrumentation.h" #include <set> @@ -48,8 +45,8 @@ ModulePass *llvm::createEdgeProfilerPass() { return new EdgeProfiler(); } bool EdgeProfiler::runOnModule(Module &M) { Function *Main = M.getFunction("main"); if (Main == 0) { - cerr << "WARNING: cannot insert edge profiling into a module" - << " with no main function!\n"; + errs() << "WARNING: cannot insert edge profiling into a module" + << " with no main function!\n"; return false; // No main, no instrumentation! } |