From: Chris Lattner Date: Mon, 1 Oct 2001 13:34:22 +0000 (+0000) Subject: Update comments X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6bad546c2a4eac51eabc6ac398861dcf7d5f18bb;p=oota-llvm.git Update comments git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@692 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/GraphTraits.h b/include/llvm/Support/GraphTraits.h index 479be2caf66..67fe7c9360f 100644 --- a/include/llvm/Support/GraphTraits.h +++ b/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 > I = idf_begin(M), E = idf_end(M); +// idf_iterator I = idf_begin(M), E = idf_end(M); +// for (; I != E; ++I) { ... } +// +// Which is equivalent to: +// df_iterator > I = idf_begin(M), E = idf_end(M); // for (; I != E; ++I) { ... } // template