aboutsummaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/ADT/ilist8
-rw-r--r--include/llvm/Analysis/DataStructure/DSNode.h4
-rw-r--r--include/llvm/BasicBlock.h6
-rw-r--r--include/llvm/Function.h12
-rw-r--r--include/llvm/Module.h12
-rw-r--r--include/llvm/Use.h6
6 files changed, 24 insertions, 24 deletions
diff --git a/include/llvm/ADT/ilist b/include/llvm/ADT/ilist
index f5b9e1d5f8..5c25bbd442 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); }
diff --git a/include/llvm/Analysis/DataStructure/DSNode.h b/include/llvm/Analysis/DataStructure/DSNode.h
index 2d707153e1..27e1a5077c 100644
--- a/include/llvm/Analysis/DataStructure/DSNode.h
+++ b/include/llvm/Analysis/DataStructure/DSNode.h
@@ -369,8 +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 *createSentinal() { return new DSNode(0,0); }
- static void destroySentinal(DSNode *N) { delete N; }
+ static DSNode *createSentinel() { return new DSNode(0,0); }
+ static void destroySentinel(DSNode *N) { delete N; }
//static DSNode *createNode(const DSNode &V) { return new DSNode(V); }
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index dc3ef1bccc..2b1c3e0eea 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -40,9 +40,9 @@ template <class Ptr, class USE_iterator> class PredIterator;
template<> struct ilist_traits<Instruction>
: public SymbolTableListTraits<Instruction, BasicBlock, Function> {
- // createSentinal is used to create a node that marks the end of the list...
- static Instruction *createSentinal();
- static void destroySentinal(Instruction *I) { delete I; }
+ // createSentinel is used to create a node that marks the end of the list...
+ static Instruction *createSentinel();
+ static void destroySentinel(Instruction *I) { delete I; }
static iplist<Instruction> &getList(BasicBlock *BB);
};
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 88d7d3457f..6c1f469218 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -31,18 +31,18 @@ class FunctionType;
template<> struct ilist_traits<BasicBlock>
: public SymbolTableListTraits<BasicBlock, Function, Function> {
- // createSentinal is used to create a node that marks the end of the list...
- static BasicBlock *createSentinal();
- static void destroySentinal(BasicBlock *BB) { delete BB; }
+ // createSentinel is used to create a node that marks the end of the list...
+ static BasicBlock *createSentinel();
+ static void destroySentinel(BasicBlock *BB) { delete BB; }
static iplist<BasicBlock> &getList(Function *F);
};
template<> struct ilist_traits<Argument>
: public SymbolTableListTraits<Argument, Function, Function> {
- // createSentinal is used to create a node that marks the end of the list...
- static Argument *createSentinal();
- static void destroySentinal(Argument *A) { delete A; }
+ // createSentinel is used to create a node that marks the end of the list...
+ static Argument *createSentinel();
+ static void destroySentinel(Argument *A) { delete A; }
static iplist<Argument> &getList(Function *F);
};
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index c53ee4eb9a..61ba60f08e 100644
--- a/include/llvm/Module.h
+++ b/include/llvm/Module.h
@@ -32,16 +32,16 @@ class SymbolTable;
template<> struct ilist_traits<Function>
: public SymbolTableListTraits<Function, Module, Module> {
- // createSentinal is used to create a node that marks the end of the list.
- static Function *createSentinal();
- static void destroySentinal(Function *F) { delete F; }
+ // createSentinel is used to create a node that marks the end of the list.
+ static Function *createSentinel();
+ static void destroySentinel(Function *F) { delete F; }
static iplist<Function> &getList(Module *M);
};
template<> struct ilist_traits<GlobalVariable>
: public SymbolTableListTraits<GlobalVariable, Module, Module> {
- // createSentinal is used to create a node that marks the end of the list.
- static GlobalVariable *createSentinal();
- static void destroySentinal(GlobalVariable *GV) { delete GV; }
+ // createSentinel is used to create a node that marks the end of the list.
+ static GlobalVariable *createSentinel();
+ static void destroySentinel(GlobalVariable *GV) { delete GV; }
static iplist<GlobalVariable> &getList(Module *M);
};
diff --git a/include/llvm/Use.h b/include/llvm/Use.h
index 3eeea92e91..26923a26da 100644
--- a/include/llvm/Use.h
+++ b/include/llvm/Use.h
@@ -84,12 +84,12 @@ struct ilist_traits<Use> {
static void setPrev(Use *N, Use *Prev) { N->UseLinks.Prev = Prev; }
static void setNext(Use *N, Use *Next) { N->UseLinks.Next = Next; }
- /// createSentinal - this is used to create the end marker for the use list.
+ /// createSentinel - this is used to create the end marker for the use list.
/// Note that we only allocate a UseLinks structure, which is just enough to
/// hold the next/prev pointers. This saves us 8 bytes of memory for every
/// Value allocated.
- static Use *createSentinal() { return (Use*)new Use::NextPrevPtrs(); }
- static void destroySentinal(Use *S) { delete (Use::NextPrevPtrs*)S; }
+ static Use *createSentinel() { return (Use*)new Use::NextPrevPtrs(); }
+ static void destroySentinel(Use *S) { delete (Use::NextPrevPtrs*)S; }
void addNodeToList(Use *NTy) {}
void removeNodeFromList(Use *NTy) {}