mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Reuse "LookupCache" pointer for a LoadedModule’s owner.
Minor size optimization. No functionality change. Swift SVN r6521
This commit is contained in:
@@ -305,14 +305,13 @@ public:
|
||||
///
|
||||
/// This may be a Swift module or a Clang module.
|
||||
class LoadedModule : public Module {
|
||||
ModuleLoader &Owner;
|
||||
|
||||
protected:
|
||||
LoadedModule(DeclContextKind kind, Identifier name, Component *comp,
|
||||
ASTContext &ctx, ModuleLoader &owner)
|
||||
: Module(kind, name, comp, ctx), Owner(owner) {
|
||||
: Module(kind, name, comp, ctx) {
|
||||
// Loaded modules are always well-formed.
|
||||
ASTStage = TypeChecked;
|
||||
LookupCachePimpl = static_cast<void *>(&owner);
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user