mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user