ReaderWriter: Use ilist_noalloc_traits for TrieEdge, NFC

Adopt r280128 in lld, specializing ilist_alloc_traits rather than
reinventing the wheel.

llvm-svn: 280566
This commit is contained in:
Duncan P. N. Exon Smith 2016-09-03 01:29:36 +00:00
parent 8cc24eadd2
commit 9f71057d69
1 changed files with 3 additions and 8 deletions

View File

@ -66,14 +66,9 @@ struct TrieEdge : public llvm::ilist_node<TrieEdge> {
namespace llvm {
using lld::mach_o::normalized::TrieEdge;
template <>
struct ilist_traits<TrieEdge> : public ilist_default_traits<TrieEdge> {
void deleteNode(TrieEdge *N) {}
private:
void createNode(const TrieEdge &);
};
using lld::mach_o::normalized::TrieEdge;
template <>
struct ilist_alloc_traits<TrieEdge> : ilist_noalloc_traits<TrieEdge> {};
} // namespace llvm