[lld] r279458 - ADT: Remove uses of ilist_*sentinel_traits, NFC
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 11:59:34 PDT 2016
Author: dexonsmith
Date: Mon Aug 22 13:59:33 2016
New Revision: 279458
URL: http://llvm.org/viewvc/llvm-project?rev=279458&view=rev
Log:
ADT: Remove uses of ilist_*sentinel_traits, NFC
Modified:
lld/trunk/include/lld/Core/Simple.h
lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
Modified: lld/trunk/include/lld/Core/Simple.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Simple.h?rev=279458&r1=279457&r2=279458&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Simple.h (original)
+++ lld/trunk/include/lld/Core/Simple.h Mon Aug 22 13:59:33 2016
@@ -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<lld::SimpleReference>
- : public ilist_full_embedded_sentinel_traits<lld::SimpleReference> {};
-
-} // end namespace llvm
-
-namespace lld {
-
class SimpleDefinedAtom : public DefinedAtom {
public:
explicit SimpleDefinedAtom(const File &f)
Modified: lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp?rev=279458&r1=279457&r2=279458&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp Mon Aug 22 13:59:33 2016
@@ -68,10 +68,6 @@ struct TrieEdge : public llvm::ilist_nod
namespace llvm {
using lld::mach_o::normalized::TrieEdge;
template <>
- struct ilist_sentinel_traits<TrieEdge>
- : public ilist_half_embedded_sentinel_traits<TrieEdge> {};
-
- template <>
struct ilist_traits<TrieEdge> : public ilist_default_traits<TrieEdge> {
void deleteNode(TrieEdge *N) {}
More information about the llvm-commits
mailing list