[Serialization] Remove the last use of Identifiers for SIL names

The string-keyed tables don't actually need Identifier keys on the
serialization side -- no reason to persist these in the ASTContext's
string table either.
This commit is contained in:
Jordan Rose
2018-09-12 21:26:00 -07:00
parent 09d3dbd3e0
commit 5fe5391dae
8 changed files with 37 additions and 31 deletions

View File

@@ -95,10 +95,9 @@ convertToDefinition(ArrayRef<Entry> entries) {
}
}
Identifier SILDefaultWitnessTable::getIdentifier() const {
std::string SILDefaultWitnessTable::getUniqueName() const {
Mangle::ASTMangler Mangler;
std::string name = Mangler.mangleTypeAsUSR(getProtocol()->getDeclaredType());
return Mod.getASTContext().getIdentifier(name);
return Mangler.mangleTypeAsUSR(getProtocol()->getDeclaredType());
}
SILDefaultWitnessTable::~SILDefaultWitnessTable() {