mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user