33 Cache(0), Name(name) { }
50 assert(Ts.
count(o) == 0 &&
"Object already in set!");
52 assert(Cache != o &&
"Object already in set!");
68 assert(Cache == 0 &&
"No value should be cached anymore!");
71 errs() <<
"Leaked " << Name <<
" objects found: " << Message <<
":\n";
73 E = Ts.
end();
I != E; ++
I) {
static void print(const Value *P)
bool hasGarbage(const std::string &Message)
bool count(PtrType Ptr) const
count - Return true if the specified pointer is in the set.
LeakDetectorImpl(const char *const name="")
void addGarbage(const T *o)
bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const
static void print(const T *P)
void setName(const char *n)
void removeGarbage(const T *o)
LLVM Value Representation.