mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a protected LoadedModule::getOwner to simplify r6519.
(r6159 stashed a LoadedModule's owner in the "LookupCachePimpl" field.) Swift SVN r6696
This commit is contained in:
@@ -316,6 +316,10 @@ protected:
|
||||
LookupCachePimpl = static_cast<void *>(&owner);
|
||||
}
|
||||
|
||||
ModuleLoader &getOwner() const {
|
||||
return *static_cast<ModuleLoader *>(LookupCachePimpl);
|
||||
}
|
||||
|
||||
public:
|
||||
// Inherited from Module.
|
||||
void lookupValue(AccessPathTy accessPath, Identifier name, NLKind lookupKind,
|
||||
|
||||
Reference in New Issue
Block a user