[Module aliasing] Serialize binary with module real name

Resolves rdar://83632529
This commit is contained in:
elsh
2021-10-12 12:46:36 -07:00
parent f189992189
commit 96fb3d6112
17 changed files with 200 additions and 167 deletions

View File

@@ -1501,7 +1501,7 @@ StringRef ModuleDecl::ReverseFullNameIterator::operator*() const {
assert(current && "all name components exhausted");
if (auto *swiftModule = current.dyn_cast<const ModuleDecl *>())
return swiftModule->getName().str();
return swiftModule->getRealName().str();
auto *clangModule =
static_cast<const clang::Module *>(current.get<const void *>());