summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/GraphTraits.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-11-17 10:54:25 +0000
committerDuncan Sands <baldrick@free.fr>2009-11-17 10:54:25 +0000
commit4a20c7a0a9ffa2b60668b1b8c39e550531dbcbb1 (patch)
treefb2c0957e2e15526bf7b1a228b4ba652a4552c94 /include/llvm/ADT/GraphTraits.h
parent3ea11cf8fc4115927514e3b2c7f272a92fd99c89 (diff)
downloadllvm-4a20c7a0a9ffa2b60668b1b8c39e550531dbcbb1.tar.gz
llvm-4a20c7a0a9ffa2b60668b1b8c39e550531dbcbb1.tar.bz2
llvm-4a20c7a0a9ffa2b60668b1b8c39e550531dbcbb1.tar.xz
1. Allow SCCIterator to work with GraphT types that are constant.
2. Allow SCCIterator to work with inverse graphs. 3. Fix an incorrect comment in GraphTraits.h (the type in the comment was given as GraphType* when it is actually const GraphType &). Patch by Patrick Alexander Simmons. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/GraphTraits.h')
-rw-r--r--include/llvm/ADT/GraphTraits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/GraphTraits.h b/include/llvm/ADT/GraphTraits.h
index 2d103cf83e..0fd1f5022a 100644
--- a/include/llvm/ADT/GraphTraits.h
+++ b/include/llvm/ADT/GraphTraits.h
@@ -30,7 +30,7 @@ struct GraphTraits {
// typedef NodeType - Type of Node in the graph
// typedef ChildIteratorType - Type used to iterate over children in graph
- // static NodeType *getEntryNode(GraphType *)
+ // static NodeType *getEntryNode(const GraphType &)
// Return the entry node of the graph
// static ChildIteratorType child_begin(NodeType *)