diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-30 00:09:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-30 00:09:23 +0000 |
commit | bca81448ac8e19c588c9a4ad16fc70732b76327c (patch) | |
tree | eb4d515aa88a94cc20e36908ff4336a032129399 /include/llvm/ADT | |
parent | 5c3fa1ec79b3e37e364641a995e08e0ddd933372 (diff) | |
download | external_llvm-bca81448ac8e19c588c9a4ad16fc70732b76327c.zip external_llvm-bca81448ac8e19c588c9a4ad16fc70732b76327c.tar.gz external_llvm-bca81448ac8e19c588c9a4ad16fc70732b76327c.tar.bz2 |
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
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/ilist | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/ilist b/include/llvm/ADT/ilist index f5b9e1d..5c25bbd 100644 --- a/include/llvm/ADT/ilist +++ b/include/llvm/ADT/ilist @@ -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); } |