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:
parent
d4e8817fd9
commit
ec700533c1
@ -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>);
|
||||||
|
Loading…
Reference in New Issue
Block a user