mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user