mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/master' into master-rebranch
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "swift/Basic/FileTypes.h"
|
||||
#include "swift/Basic/SourceManager.h"
|
||||
#include "swift/Basic/Statistic.h"
|
||||
#include "swift/Frontend/ParseableInterfaceModuleLoader.h"
|
||||
#include "swift/Frontend/ModuleInterfaceLoader.h"
|
||||
#include "swift/Parse/Lexer.h"
|
||||
#include "swift/SIL/SILModule.h"
|
||||
#include "swift/SILOptimizer/PassManager/Passes.h"
|
||||
@@ -114,12 +114,12 @@ std::string CompilerInvocation::getTBDPathForWholeModule() const {
|
||||
}
|
||||
|
||||
std::string
|
||||
CompilerInvocation::getParseableInterfaceOutputPathForWholeModule() const {
|
||||
CompilerInvocation::getModuleInterfaceOutputPathForWholeModule() const {
|
||||
assert(getFrontendOptions().InputsAndOutputs.isWholeModule() &&
|
||||
"ParseableInterfaceOutputPath only makes sense when the whole module "
|
||||
"ModuleInterfaceOutputPath only makes sense when the whole module "
|
||||
"can be seen");
|
||||
return getPrimarySpecificPathsForAtMostOnePrimary()
|
||||
.SupplementaryOutputs.ParseableInterfaceOutputPath;
|
||||
.SupplementaryOutputs.ModuleInterfaceOutputPath;
|
||||
}
|
||||
|
||||
SerializationOptions CompilerInvocation::computeSerializationOptions(
|
||||
@@ -331,12 +331,12 @@ bool CompilerInstance::setUpModuleLoaders() {
|
||||
llvm::sys::Process::GetEnv("SWIFT_FORCE_MODULE_LOADING")) {
|
||||
if (*forceModuleLoadingMode == "prefer-interface" ||
|
||||
*forceModuleLoadingMode == "prefer-parseable")
|
||||
MLM = ModuleLoadingMode::PreferParseable;
|
||||
MLM = ModuleLoadingMode::PreferInterface;
|
||||
else if (*forceModuleLoadingMode == "prefer-serialized")
|
||||
MLM = ModuleLoadingMode::PreferSerialized;
|
||||
else if (*forceModuleLoadingMode == "only-interface" ||
|
||||
*forceModuleLoadingMode == "only-parseable")
|
||||
MLM = ModuleLoadingMode::OnlyParseable;
|
||||
MLM = ModuleLoadingMode::OnlyInterface;
|
||||
else if (*forceModuleLoadingMode == "only-serialized")
|
||||
MLM = ModuleLoadingMode::OnlySerialized;
|
||||
else {
|
||||
@@ -374,7 +374,7 @@ bool CompilerInstance::setUpModuleLoaders() {
|
||||
std::string ModuleCachePath = getModuleCachePathFromClang(Clang);
|
||||
auto &FEOpts = Invocation.getFrontendOptions();
|
||||
StringRef PrebuiltModuleCachePath = FEOpts.PrebuiltModuleCachePath;
|
||||
auto PIML = ParseableInterfaceModuleLoader::create(
|
||||
auto PIML = ModuleInterfaceLoader::create(
|
||||
*Context, ModuleCachePath, PrebuiltModuleCachePath,
|
||||
getDependencyTracker(), MLM, FEOpts.PreferInterfaceForModules,
|
||||
FEOpts.RemarkOnRebuildFromModuleInterface);
|
||||
|
||||
Reference in New Issue
Block a user