From 366e5c1bf14934c846b643a0068f3d33b906ff1b Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 22 Dec 2014 13:00:36 +0000 Subject: The leak detector is dead, long live asan and valgrind. In resent times asan and valgrind have found way more memory management bugs in llvm than the special purpose leak detector. llvm-svn: 224703 --- llvm/lib/IR/Value.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/IR/Value.cpp') diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp index d790f9e..a9e6a72 100644 --- a/llvm/lib/IR/Value.cpp +++ b/llvm/lib/IR/Value.cpp @@ -23,7 +23,6 @@ #include "llvm/IR/GetElementPtrTypeIterator.h" #include "llvm/IR/InstrTypes.h" #include "llvm/IR/Instructions.h" -#include "llvm/IR/LeakDetector.h" #include "llvm/IR/Module.h" #include "llvm/IR/Operator.h" #include "llvm/IR/ValueHandle.h" @@ -84,9 +83,6 @@ Value::~Value() { // If this value is named, destroy the name. This should not be in a symtab // at this point. destroyValueName(); - - // There should be no uses of this object anymore, remove it. - LeakDetector::removeGarbageObject(this); } void Value::destroyValueName() { -- cgit v1.1