1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

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

llvm-svn: 120
This commit is contained in:
Chris Lattner 2001-07-02 01:08:08 +00:00
parent d4e8817fd9
commit ec700533c1

View File

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