aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/BasicBlock.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-29 18:41:00 +0000
committerChris Lattner <sabre@nondot.org>2005-01-29 18:41:00 +0000
commit38653f0ac83b793142cd0f3000ba5b1667b08a80 (patch)
treef31f2acabf80c26fdad3d93a75827fc4e4ec2316 /include/llvm/BasicBlock.h
parented4d467c690b549f2cc9721abcc0dbb07291678f (diff)
Adjust to changes in ilist
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/BasicBlock.h')
-rw-r--r--include/llvm/BasicBlock.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index ed9794207a..dc3ef1bccc 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -40,8 +40,9 @@ template <class Ptr, class USE_iterator> class PredIterator;
template<> struct ilist_traits<Instruction>
: public SymbolTableListTraits<Instruction, BasicBlock, Function> {
- // createNode is used to create a node that marks the end of the list...
- static Instruction *createNode();
+ // createSentinal is used to create a node that marks the end of the list...
+ static Instruction *createSentinal();
+ static void destroySentinal(Instruction *I) { delete I; }
static iplist<Instruction> &getList(BasicBlock *BB);
};