[lld] r280566 - ReaderWriter: Use ilist_noalloc_traits for TrieEdge, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 2 18:29:36 PDT 2016
Author: dexonsmith
Date: Fri Sep 2 20:29:36 2016
New Revision: 280566
URL: http://llvm.org/viewvc/llvm-project?rev=280566&view=rev
Log:
ReaderWriter: Use ilist_noalloc_traits for TrieEdge, NFC
Adopt r280128 in lld, specializing ilist_alloc_traits rather than
reinventing the wheel.
Modified:
lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
Modified: lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp?rev=280566&r1=280565&r2=280566&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp Fri Sep 2 20:29:36 2016
@@ -66,14 +66,9 @@ struct TrieEdge : public llvm::ilist_nod
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
More information about the llvm-commits
mailing list