diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-01 13:34:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 13:34:22 +0000 |
commit | 274aeb70388556126f571f44f07dd1dc98fde374 (patch) | |
tree | 05f930773b823806132f4acea549c6aeeb5adfb7 | |
parent | ba1c1f2fb67148c016861a0c535af8a0af173cce (diff) | |
download | bcm5719-llvm-274aeb70388556126f571f44f07dd1dc98fde374.tar.gz bcm5719-llvm-274aeb70388556126f571f44f07dd1dc98fde374.zip |
Update comments
llvm-svn: 692
-rw-r--r-- | llvm/include/llvm/Support/GraphTraits.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/GraphTraits.h b/llvm/include/llvm/Support/GraphTraits.h index 479be2caf66..67fe7c9360f 100644 --- a/llvm/include/llvm/Support/GraphTraits.h +++ b/llvm/include/llvm/Support/GraphTraits.h @@ -32,9 +32,11 @@ struct GraphTraits { // If anyone tries to use this class without having an appropriate - // specialization make an error. If you get this error, it's because you + // specialization, make an error. If you get this error, it's because you // need to include the appropriate specialization of GraphTraits<> for your - // graph, or you need to define it for a new graph type. + // graph, or you need to define it for a new graph type. Either that or + // your argument to XXX_begin(...) is unknown or needs to have the proper .h + // file #include'd. // typedef typename GraphType::UnknownGraphTypeError NodeType; }; @@ -46,7 +48,11 @@ struct GraphTraits { // the graph exactly what that is. Here's an example of usage with the // df_iterator: // -// df_iterator<Inverse<Method> > I = idf_begin(M), E = idf_end(M); +// idf_iterator<Method*> I = idf_begin(M), E = idf_end(M); +// for (; I != E; ++I) { ... } +// +// Which is equivalent to: +// df_iterator<Inverse<Method*> > I = idf_begin(M), E = idf_end(M); // for (; I != E; ++I) { ... } // template <class GraphType> |