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 | 1a25d733f901fd26b52780ac55081bb2129808f0 (patch) | |
tree | 28cc7c8ec04483e6a9fd3fe06098be811ed1f086 /llvm/lib/VMCore/LeakDetector.cpp | |
parent | 2982196fca92425c51cdfb0ceaa5b2c685d97b77 (diff) | |
download | bcm5719-llvm-1a25d733f901fd26b52780ac55081bb2129808f0.tar.gz bcm5719-llvm-1a25d733f901fd26b52780ac55081bb2129808f0.zip |
Kill off more cerr/cout uses and prune includes a bit.
llvm-svn: 79852
Diffstat (limited to 'llvm/lib/VMCore/LeakDetector.cpp')
-rw-r--r-- | llvm/lib/VMCore/LeakDetector.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/LeakDetector.cpp b/llvm/lib/VMCore/LeakDetector.cpp index 31857421746..5ebd4f5ac03 100644 --- a/llvm/lib/VMCore/LeakDetector.cpp +++ b/llvm/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... |