Remove the old mangler.

NFC
This commit is contained in:
Erik Eckstein
2017-03-17 08:45:41 -07:00
parent b4c8b0caa2
commit 1625345b90
43 changed files with 147 additions and 3714 deletions

View File

@@ -4330,7 +4330,8 @@ void Serializer::writeAST(ModuleOrSourceFile DC,
for (auto TD : localTypeDecls) {
hasLocalTypes = true;
std::string MangledName = NewMangling::mangleTypeAsUSR(
NewMangling::ASTMangler Mangler;
std::string MangledName = Mangler.mangleTypeAsUSR(
TD->getDeclaredInterfaceType());
assert(!MangledName.empty() && "Mangled type came back empty!");
localTypeGenerator.insert(MangledName, {