mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user