mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
ADT: Remove uses of ilist_*sentinel_traits, NFC
llvm-svn: 279458
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -67,10 +67,6 @@ struct TrieEdge : public llvm::ilist_node<TrieEdge> {
|
||||
|
||||
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) {}
|
||||
|
||||
Reference in New Issue
Block a user