No functional change is intended.
llvm-svn: 277913
public:
CallGraphSCC(CallGraph &cg, void *context) : CG(cg), Context(context) {}
- void initialize(CallGraphNode *const *I, CallGraphNode *const *E) {
- Nodes.assign(I, E);
+ void initialize(ArrayRef<CallGraphNode *> NewNodes) {
+ Nodes.assign(NewNodes.begin(), NewNodes.end());
}
bool isSingular() const { return Nodes.size() == 1; }
// Copy the current SCC and increment past it so that the pass can hack
// on the SCC if it wants to without invalidating our iterator.
const std::vector<CallGraphNode *> &NodeVec = *CGI;
- CurSCC.initialize(NodeVec.data(), NodeVec.data() + NodeVec.size());
+ CurSCC.initialize(NodeVec);
++CGI;
// At the top level, we run all the passes in this pass manager on the