[IDE] Preparations for removal of getName on ValueDecl

With the introduction of special decl names, `Identifier getName()` on
`ValueDecl` will be removed and pushed down to nominal declarations
whose name is guaranteed not to be special. Prepare for this by calling
to `DeclBaseName getBaseName()` instead where appropriate.
This commit is contained in:
Alex Hoppen
2017-05-05 11:17:59 +01:00
committed by Jordan Rose
parent de5000f9a6
commit 73c524ca5e
4 changed files with 8 additions and 14 deletions

View File

@@ -480,8 +480,8 @@ void swift::ide::printSubmoduleInterface(
auto *RHSValue = dyn_cast<ValueDecl>(RHS);
if (LHSValue && RHSValue) {
StringRef LHSName = LHSValue->getName().str();
StringRef RHSName = RHSValue->getName().str();
auto LHSName = LHSValue->getBaseName();
auto RHSName = RHSValue->getBaseName();
if (int Ret = LHSName.compare(RHSName))
return Ret < 0;
// FIXME: this is not sufficient to establish a total order for overloaded