mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Demangler: print substitutions in Demangler::dump()
For better debugging of the demangler.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user