Revert "Serialize local types and provide a lookup API"

Changing the design of this to maintain more local context
information and changing the lookup API.

This reverts commit 4f2ff1819064dc61c20e31c7c308ae6b3e6615d0.

Swift SVN r24432
This commit is contained in:
David Farler
2015-01-15 00:33:10 +00:00
parent c5830745d7
commit cad9f99929
44 changed files with 194 additions and 1177 deletions

View File

@@ -399,12 +399,6 @@ void SerializedASTFile::lookupValue(Module::AccessPathTy accessPath,
File.lookupValue(name, results);
}
TypeDecl *SerializedASTFile::lookupLocalType(llvm::StringRef FileHash,
unsigned int LocalDiscriminator,
llvm::StringRef Name) const {
return File.lookupLocalType(FileHash, LocalDiscriminator, Name);
}
OperatorDecl *SerializedASTFile::lookupOperator(Identifier name,
DeclKind fixity) const {
return File.lookupOperator(name, fixity);
@@ -437,10 +431,6 @@ void SerializedASTFile::getTopLevelDecls(SmallVectorImpl<Decl*> &results) const{
File.getTopLevelDecls(results);
}
void SerializedASTFile::getLocalTypeDecls(SmallVectorImpl<Decl*> &results) const {
return File.getLocalTypeDecls(results);
}
void SerializedASTFile::getDisplayDecls(SmallVectorImpl<Decl*> &results) const {
File.getDisplayDecls(results);
}
@@ -461,10 +451,3 @@ SerializedASTFile::getDiscriminatorForPrivateValue(const ValueDecl *D) const {
assert(!discriminator.empty() && "no discriminator found for value");
return discriminator;
}
Identifier
SerializedASTFile::getDiscriminatorForLocalValue(const ValueDecl *D) const {
Identifier discriminator = File.getDiscriminatorForLocalValue(D);
assert(!discriminator.empty() && "no discriminator found for value");
return discriminator;
}