Moved deleter to include/llvm/Tools/STLExtras.h

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-07-02 01:08:08 +00:00
parent 02e90d59c8
commit bd4996ad68

View File

@ -14,8 +14,6 @@ using namespace cfg;
// IntervalPartition Implementation
//===----------------------------------------------------------------------===//
template <class T> static inline void deleter(T *Ptr) { delete Ptr; }
// Destructor - Free memory
IntervalPartition::~IntervalPartition() {
for_each(begin(), end(), deleter<cfg::Interval>);