[serialization] Validate the control block -- is the module too new?

Not so interesting right now, but eventually we'll be validating other
things as well, and it's best not to have FIXMEs lying around.

Swift SVN r5175
This commit is contained in:
Jordan Rose
2013-05-16 00:23:13 +00:00
parent 3109d8c830
commit f9c4046896
6 changed files with 79 additions and 21 deletions

View File

@@ -50,13 +50,6 @@ public:
/// emits a diagnostic and returns NULL.
virtual Module *
loadModule(SourceLoc importLoc, Module::AccessPathTy path) override;
private:
/// Report an error in reading a module file.
///
/// \returns A dummy module, to prevent reloadeding
// FIXME: This should move to a dedicated Reader class.
Module *error(std::pair<Identifier, SourceLoc> importLoc);
};
}