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:
Alex Hoppen
2017-05-30 15:04:48 +02:00
parent 2fe2328436
commit 949968a182
23 changed files with 83 additions and 51 deletions

View File

@@ -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) {