static std::string mangleConstant(NormalProtocolConformance *C) { using namespace Mangle; Mangler mangler; // mangled-name ::= '_T' global // global ::= 'WP' protocol-conformance mangler.append("_TWP"); mangler.mangleProtocolConformance(C); std::string Old = mangler.finalize(); NewMangling::ASTMangler NewMangler; std::string New = NewMangler.mangleWitnessTable(C); return NewMangling::selectMangling(Old, New); }
static std::string mangleConstant(NormalProtocolConformance *C) { NewMangling::ASTMangler Mangler; return Mangler.mangleWitnessTable(C); }