move the lookup to the getRealName()

This commit is contained in:
elsh
2021-09-30 12:43:41 -07:00
parent b00fcdc3f1
commit b5f8c7901c
2 changed files with 2 additions and 13 deletions

View File

@@ -171,9 +171,6 @@ class ModuleDecl
/// The ABI name of the module, if it differs from the module name.
mutable Identifier ModuleABIName;
/// The actual module name for an alias used for this module (if any).
mutable Identifier ModuleRealName;
public:
/// Produces the components of a given module's full name in reverse order.
///
@@ -393,12 +390,6 @@ private:
/// module if one exists.
ModuleDecl *getUnderlyingModuleIfOverlay() const;
/// If a module alias is used, set the corresponding real name on disk,
/// which will be used for contents including metadata and mangling.
void setRealName(Identifier name) {
ModuleRealName = name;
}
public:
/// Returns true if this module is an underscored cross import overlay