Index: llvm/include/llvm/ADT/DirectedGraph.h =================================================================== --- llvm/include/llvm/ADT/DirectedGraph.h +++ llvm/include/llvm/ADT/DirectedGraph.h @@ -48,6 +48,9 @@ static_cast &>(*this).getTargetNode()); } + /// Set the target node this edge connects to. + void setTargetNode(const NodeType &N) { TargetNode = N; } + protected: // As the default implementation use address comparison for equality. bool isEqualTo(const EdgeType &E) const { return this == &E; }