[Serialization] Mark deserialized decls as early-attr-validated.

This should not have any observable effect, but it means the compiler won't
waste time validating the attributes of deserialized declarations.

Swift SVN r21499
This commit is contained in:
Jordan Rose
2014-08-28 00:32:34 +00:00
parent 2665ad5f03
commit 0e99a88798
2 changed files with 75 additions and 60 deletions

View File

@@ -282,6 +282,10 @@ private:
assert(status == getStatus() && "not enough bits for status");
}
/// Creates a new AST node to represent a deserialized decl.
template <typename T, typename ...Args>
T *createDecl(Args &&... args);
/// Constructs an new module and validates it.
ModuleFile(std::unique_ptr<llvm::MemoryBuffer> moduleInputBuffer,
std::unique_ptr<llvm::MemoryBuffer> moduleDocInputBuffer,