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:
Jordan Rose
2013-07-29 18:56:45 +00:00
parent d9b7c8ad5a
commit 45bad83c54
2 changed files with 8 additions and 8 deletions

View File

@@ -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,