Remangler: Properly handle "static" as a context node.

Should bring the test/Demangle/remangle.swift test case back online.

Swift SVN r25120
This commit is contained in:
Joe Groff
2015-02-10 05:51:36 +00:00
parent 6e59195933
commit 0b1e8ec6ab
2 changed files with 3 additions and 3 deletions

View File

@@ -823,9 +823,9 @@ void Remangler::mangleImplicitClosure(Node *node, EntityContext &ctx) {
mangleNamedAndTypedEntity(node, 'F', "u", ctx); // name is index
}
void Remangler::mangleStatic(Node *node) {
void Remangler::mangleStatic(Node *node, EntityContext &ctx) {
Out << 'Z';
mangle(node->getChild(0).get());
mangleEntityContext(node->getChild(0).get(), ctx);
}
void Remangler::mangleSimpleEntity(Node *node, char basicKind,