Use actual Identifiers for private discriminators, rather than strings.

This is useful both for caching purposes and for comparison of discriminators
(something the debugger will need to do when looking up a particular decl).

No observable functionality change.

Swift SVN r21610
This commit is contained in:
Jordan Rose
2014-08-30 17:26:59 +00:00
parent ea26f65b62
commit fcfd44c756
9 changed files with 43 additions and 36 deletions

View File

@@ -1239,7 +1239,7 @@ Optional<BriefAndRawComment> ModuleFile::getCommentForDeclByUSR(StringRef USR) {
return *I;
}
StringRef ModuleFile::getDiscriminatorForPrivateValue(const ValueDecl *D) {
Identifier ModuleFile::getDiscriminatorForPrivateValue(const ValueDecl *D) {
// FIXME: Actually implement this.
return FileContext->getParentModule()->Name.str();
return FileContext->getParentModule()->Name;
}