mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 00:24:26 +00:00
Improve conformance with the Misha spelling benchmark suite
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19930 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -60,8 +60,8 @@ struct ilist_traits {
|
||||
|
||||
static NodeTy *createNode(const NodeTy &V) { return new NodeTy(V); }
|
||||
|
||||
static NodeTy *createSentinal() { return new NodeTy(); }
|
||||
static void destroySentinal(NodeTy *N) { delete N; }
|
||||
static NodeTy *createSentinel() { return new NodeTy(); }
|
||||
static void destroySentinel(NodeTy *N) { delete N; }
|
||||
|
||||
void addNodeToList(NodeTy *NTy) {}
|
||||
void removeNodeFromList(NodeTy *NTy) {}
|
||||
@ -302,11 +302,11 @@ public:
|
||||
typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
|
||||
typedef std::reverse_iterator<iterator> reverse_iterator;
|
||||
|
||||
iplist() : Head(Traits::createSentinal()), Tail(Head) {
|
||||
iplist() : Head(Traits::createSentinel()), Tail(Head) {
|
||||
setNext(Head, 0);
|
||||
setPrev(Head, 0);
|
||||
}
|
||||
~iplist() { clear(); Traits::destroySentinal(Tail); }
|
||||
~iplist() { clear(); Traits::destroySentinel(Tail); }
|
||||
|
||||
// Iterator creation methods.
|
||||
iterator begin() { return iterator(Head); }
|
||||
|
Reference in New Issue
Block a user