From c9e8bc191c69962f2acaace79800196ef5200eec Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Mon, 22 Aug 2016 18:59:33 +0000 Subject: [PATCH] ADT: Remove uses of ilist_*sentinel_traits, NFC llvm-svn: 279458 --- lld/include/lld/Core/Simple.h | 15 --------------- .../MachO/MachONormalizedFileBinaryWriter.cpp | 4 ---- 2 files changed, 19 deletions(-) diff --git a/lld/include/lld/Core/Simple.h b/lld/include/lld/Core/Simple.h index a6e1061..3aa7abf 100644 --- a/lld/include/lld/Core/Simple.h +++ b/lld/include/lld/Core/Simple.h @@ -141,21 +141,6 @@ private: Addend _addend; }; -} // end namespace lld - -// ilist will lazily create a sentinal (so end() can return a node past the end -// of the list). This trait embeds the sentinel in the ilist to avoid the lazy -// logic. -namespace llvm { - -template <> -struct ilist_sentinel_traits - : public ilist_full_embedded_sentinel_traits {}; - -} // end namespace llvm - -namespace lld { - class SimpleDefinedAtom : public DefinedAtom { public: explicit SimpleDefinedAtom(const File &f) diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp index 5716556..7246e4c 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp @@ -68,10 +68,6 @@ struct TrieEdge : public llvm::ilist_node { namespace llvm { using lld::mach_o::normalized::TrieEdge; template <> - struct ilist_sentinel_traits - : public ilist_half_embedded_sentinel_traits {}; - - template <> struct ilist_traits : public ilist_default_traits { void deleteNode(TrieEdge *N) {} -- 2.7.4