summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-08-14 20:40:10 +0000
committerOwen Anderson <resistor@mac.com>2008-08-14 20:40:10 +0000
commitd09fe9d922e5c019e43e3f969f801f80f446364c (patch)
tree950af133ec7a8c8421afe516cbd97904a01f256e
parent550c9af91f85c7c55361751cc33a7974f58bf9a3 (diff)
downloadbcm5719-llvm-d09fe9d922e5c019e43e3f969f801f80f446364c.tar.gz
bcm5719-llvm-d09fe9d922e5c019e43e3f969f801f80f446364c.zip
Have LeakDetector use a SmallPtrSet instead of an std::set.
llvm-svn: 54785
-rw-r--r--llvm/lib/VMCore/LeakDetector.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/LeakDetector.cpp b/llvm/lib/VMCore/LeakDetector.cpp
index 4ad75b73733..1bf91715538 100644
--- a/llvm/lib/VMCore/LeakDetector.cpp
+++ b/llvm/lib/VMCore/LeakDetector.cpp
@@ -12,10 +12,10 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/LeakDetector.h"
+#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Streams.h"
#include "llvm/Value.h"
-#include <set>
using namespace llvm;
namespace {
@@ -60,7 +60,7 @@ namespace {
if (!Ts.empty()) {
cerr << "Leaked " << Name << " objects found: " << Message << ":\n";
- for (typename std::set<const T*>::iterator I = Ts.begin(),
+ for (typename SmallPtrSet<const T*, 8>::iterator I = Ts.begin(),
E = Ts.end(); I != E; ++I) {
cerr << "\t";
PrinterTrait<T>::print(*I);
@@ -74,7 +74,7 @@ namespace {
}
private:
- std::set<const T*> Ts;
+ SmallPtrSet<const T*, 8> Ts;
const T* Cache;
const char* const Name;
};
OpenPOWER on IntegriCloud