Minor new comments to call graph header.

Break up sections of major functionality with comments.

Swift SVN r26092
This commit is contained in:
Mark Lacey
2015-03-13 07:33:55 +00:00
parent 89826f8d6b
commit 5cb0d48ea8

View File

@@ -257,6 +257,9 @@ public:
CallGraph(SILModule *M, bool completeModule);
~CallGraph();
// Query funtions for getting roots, nodes, and edges from the call
// graph.
ArrayRef<CallGraphNode *> getCallGraphRoots() {
return CallGraphRoots;
}
@@ -287,6 +290,9 @@ public:
return const_cast<CallGraph *>(this)->getCallGraphEdge(AI);
}
// Functions for getting bottom-up lists of SCCs or functions in the
// call graph.
ArrayRef<CallGraphSCC *> getBottomUpSCCOrder() {
if (BottomUpSCCOrder.empty())
computeBottomUpSCCOrder();