aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/IR/BasicBlock.h
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-01-20 05:12:35 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-01-20 05:12:35 +0000
commit0e1a9f27bd6451897144f99ff2b2081986077896 (patch)
tree6700075d6557eae542da924edcf8aa408950061d /include/llvm/IR/BasicBlock.h
parenta1456e1cb8ade1befa7fc9cdac8fd542862cbcd8 (diff)
More copy editing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/IR/BasicBlock.h')
-rw-r--r--include/llvm/IR/BasicBlock.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/llvm/IR/BasicBlock.h b/include/llvm/IR/BasicBlock.h
index 0c4fe67dd9..ea5695a9e6 100644
--- a/include/llvm/IR/BasicBlock.h
+++ b/include/llvm/IR/BasicBlock.h
@@ -35,14 +35,13 @@ template<> struct ilist_traits<Instruction>
/// The sentinel is relative to this instance, so we use a non-static
/// method.
Instruction *createSentinel() const {
- // since i(p)lists always publicly derive from the corresponding
- // traits, placing a data member in this class will augment i(p)list.
- // But since the NodeTy is expected to publicly derive from
- // ilist_node<NodeTy>, there is a legal viable downcast from it
- // to NodeTy. We use this trick to superpose i(p)list with a "ghostly"
- // NodeTy, which becomes the sentinel. Dereferencing the sentinel is
- // forbidden (save the ilist_node<NodeTy>) so no one will ever notice
- // the superposition.
+ // Since i(p)lists always publicly derive from their corresponding traits,
+ // placing a data member in this class will augment the i(p)list. But since
+ // the NodeTy is expected to be publicly derive from ilist_node<NodeTy>,
+ // there is a legal viable downcast from it to NodeTy. We use this trick to
+ // superimpose an i(p)list with a "ghostly" NodeTy, which becomes the
+ // sentinel. Dereferencing the sentinel is forbidden (save the
+ // ilist_node<NodeTy>), so no one will ever notice the superposition.
return static_cast<Instruction*>(&Sentinel);
}
static void destroySentinel(Instruction*) {}
@@ -292,8 +291,8 @@ private:
assert((int)(signed char)getSubclassDataFromValue() >= 0 &&
"Refcount wrap-around");
}
- // \brief Shadow Value::setValueSubclassData with a private forwarding method
- // so that any future subclasses cannot accidentally use it.
+ /// \brief Shadow Value::setValueSubclassData with a private forwarding method
+ /// so that any future subclasses cannot accidentally use it.
void setValueSubclassData(unsigned short D) {
Value::setValueSubclassData(D);
}