aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/DataStructure
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-29 18:41:12 +0000
committerChris Lattner <sabre@nondot.org>2005-01-29 18:41:12 +0000
commit3cf8e6857e1e5545048fc6fb6d834d50a7b7cf8e (patch)
tree235c7be41422adfe5d7047fade45386df6eeb31b /include/llvm/Analysis/DataStructure
parent38653f0ac83b793142cd0f3000ba5b1667b08a80 (diff)
Adjust to ilist changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure')
-rw-r--r--include/llvm/Analysis/DataStructure/DSNode.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h
index 8dc39fb73c..2d707153e1 100644
--- a/include/llvm/Analysis/DataStructure/DSNode.h
+++ b/include/llvm/Analysis/DataStructure/DSNode.h
@@ -369,7 +369,8 @@ struct ilist_traits<DSNode> {
static void setPrev(DSNode *N, DSNode *Prev) { N->Prev = Prev; }
static void setNext(DSNode *N, DSNode *Next) { N->Next = Next; }
- static DSNode *createNode() { return new DSNode(0,0); }
+ static DSNode *createSentinal() { return new DSNode(0,0); }
+ static void destroySentinal(DSNode *N) { delete N; }
//static DSNode *createNode(const DSNode &V) { return new DSNode(V); }