mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Adjust printing to take into account special DeclNames
Print DeclBaseNames using a new userFacingStr() method to prepare for DeclBaseNames that are not backed by Identifiers
This commit is contained in:
@@ -27,9 +27,8 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, Identifier I) {
|
||||
return OS << I.get();
|
||||
}
|
||||
|
||||
raw_ostream &llvm::operator<<(raw_ostream &OS, DeclBaseName I) {
|
||||
// TODO: Handle special names
|
||||
return OS << I.getIdentifier();
|
||||
raw_ostream &llvm::operator<<(raw_ostream &OS, DeclBaseName D) {
|
||||
return OS << D.userFacingName();
|
||||
}
|
||||
|
||||
raw_ostream &llvm::operator<<(raw_ostream &OS, DeclName I) {
|
||||
|
||||
Reference in New Issue
Block a user