Demangler: print substitutions in Demangler::dump()

For better debugging of the demangler.
This commit is contained in:
Erik Eckstein
2020-03-02 18:30:27 +01:00
parent 0dd3c7ce79
commit d282eaaee1

View File

@@ -61,6 +61,12 @@ void swift::Demangle::Node::dump() {
}
void Demangler::dump() {
for (unsigned Idx = 0; Idx < Substitutions.size(); ++Idx) {
fprintf(stderr, "Substitution[%c]:\n", Idx + 'A');
Substitutions[Idx]->dump();
fprintf(stderr, "\n");
}
for (unsigned Idx = 0; Idx < NodeStack.size(); ++Idx) {
fprintf(stderr, "NodeStack[%u]:\n", Idx);
NodeStack[Idx]->dump();