diff --git a/llvm/include/llvm/ADT/GraphTraits.h b/llvm/include/llvm/ADT/GraphTraits.h --- a/llvm/include/llvm/ADT/GraphTraits.h +++ b/llvm/include/llvm/ADT/GraphTraits.h @@ -31,8 +31,7 @@ // differently without requiring a copy of the original graph. This could // be achieved by carrying more data in NodeRef. See LoopBodyTraits for one // example. -template -struct GraphTraits { +template struct GraphTraits { // Elements to provide: // typedef NodeRef - Type of Node token in the graph, which should @@ -88,11 +87,11 @@ // for (; I != E; ++I) { ... } // // Which is equivalent to: -// df_iterator> I = idf_begin(M), E = idf_end(M); +// df_iterator> I = df_begin(Inverse(M)), +// E = df_end(Inverse(M)); // for (; I != E; ++I) { ... } // -template -struct Inverse { +template struct Inverse { const GraphType &Graph; inline Inverse(const GraphType &G) : Graph(G) {}