Revert "Special-case the standard library to always live relative to the compiler."

This reverts r12932; it breaks the iOS simulator build.

Swift SVN r12944
This commit is contained in:
Jordan Rose
2014-01-24 23:12:24 +00:00
parent fcf1c14924
commit 130ebe4fd4
11 changed files with 83 additions and 99 deletions

View File

@@ -65,10 +65,18 @@ public:
SerializedModuleLoader &operator=(const SerializedModuleLoader &) = delete;
SerializedModuleLoader &operator=(SerializedModuleLoader &&) = delete;
/// \brief Import a module with the given module path.
///
/// \param importLoc The location of the 'import' keyword.
///
/// \param path A sequence of (identifier, location) pairs that denote
/// the dotted module name to load, e.g., AppKit.NSWindow.
///
/// \returns the module referenced, if it could be loaded. Otherwise,
/// emits a diagnostic and returns a FailedImportModule object.
virtual Module *
loadModule(SourceLoc importLoc,
ArrayRef<std::pair<Identifier, SourceLoc>> path,
bool isStdlib) override;
ArrayRef<std::pair<Identifier, SourceLoc>> path) override;
/// Attempt to load a serialized AST into the given module.
///