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 | cfa6ec92e61a1ab040c2b79db5de3a39df732ff6 (patch) | |
tree | 3b2d0a185a206d9340c40ca55c8d65386ae7e07b /lib/VMCore/LeakDetector.cpp | |
parent | 895ae9b30d4b652a41a0d0b8882d3a0fc4cadc13 (diff) |
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/VMCore/LeakDetector.cpp')
-rw-r--r-- | lib/VMCore/LeakDetector.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/VMCore/LeakDetector.cpp b/lib/VMCore/LeakDetector.cpp index 3185742174..5ebd4f5ac0 100644 --- a/lib/VMCore/LeakDetector.cpp +++ b/lib/VMCore/LeakDetector.cpp @@ -16,7 +16,6 @@ #include "llvm/ADT/SmallPtrSet.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/Streams.h" #include "llvm/System/Mutex.h" #include "llvm/System/Threading.h" #include "llvm/Value.h" @@ -64,8 +63,8 @@ void LeakDetector::checkForGarbageImpl(LLVMContext &Context, // use non-short-circuit version so that both checks are performed if (Objects->hasGarbage(Message) | pImpl->LLVMObjects.hasGarbage(Message)) - cerr << "\nThis is probably because you removed an object, but didn't " - << "delete it. Please check your code for memory leaks.\n"; + errs() << "\nThis is probably because you removed an object, but didn't " + << "delete it. Please check your code for memory leaks.\n"; // Clear out results so we don't get duplicate warnings on // next call... |