[Evaluator] GraphViz printing for all of the dependencies.

Introduce another form of debugging dump for the evaluator, rendering the
complete dependency graph using GraphViz, including all dependencies and
values cached within the evaluator.
This commit is contained in:
Doug Gregor
2018-05-23 11:47:42 -07:00
parent 8822b2edbc
commit 346bb99f73
6 changed files with 164 additions and 0 deletions

View File

@@ -18,3 +18,12 @@
using namespace swift;
AnyValue::HolderBase::~HolderBase() { }
std::string AnyValue::getAsString() const {
std::string result;
{
llvm::raw_string_ostream out(result);
simple_display(out, *this);
}
return result;
}