Home
last modified time | relevance | path

Searched defs:ilist_sentinel_traits (Results 1 – 2 of 2) sorted by relevance

/external/llvm/include/llvm/ADT/
Dilist.h76 struct ilist_sentinel_traits { struct
78 static NodeTy *createSentinel() { return new NodeTy(); } in createSentinel()
81 static void destroySentinel(NodeTy *N) { delete N; } in destroySentinel()
86 static NodeTy *provideInitialHead() { return nullptr; } in provideInitialHead()
91 static NodeTy *ensureHead(NodeTy *&Head) { in ensureHead()
102 static void noteHead(NodeTy *NewHead, NodeTy *Sentinel) { in noteHead()
/external/llvm/lib/Support/
DYAMLParser.cpp152 struct ilist_sentinel_traits<Token> { struct
153 Token *createSentinel() const { in createSentinel()
156 static void destroySentinel(Token*) {} in destroySentinel()
158 Token *provideInitialHead() const { return createSentinel(); } in provideInitialHead()
159 Token *ensureHead(Token*) const { return createSentinel(); } in ensureHead()
160 static void noteHead(Token*, Token*) {} in noteHead()
163 mutable Token Sentinel;