Skip to content

Commit c2fe8ea

Browse files
authored
Merge pull request #22531 from apple/revert-22476-sourcekit-support-for-parseable-interfaces
Revert "[ParseableInterface] Fix failing to build a module when the importing file has errors."
2 parents 5894920 + 031166e commit c2fe8ea

File tree

6 files changed

+1
-80
lines changed

6 files changed

+1
-80
lines changed

lib/Frontend/ParseableInterfaceSupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ bool ParseableInterfaceModuleLoader::buildSwiftModuleFromSwiftInterface(
452452
return;
453453
}
454454

455-
SubError = SubInstance.getDiags().hadAnyError();
455+
SubError = Diags.hadAnyError();
456456
});
457457
return !RunSuccess || SubError;
458458
}

test/ParseableInterface/ModuleCache/module-cache-errors-in-importing-file.swift

Lines changed: 0 additions & 23 deletions
This file was deleted.

test/SourceKit/CodeComplete/Inputs/parseable-interface/MyPoint.swift

Lines changed: 0 additions & 13 deletions
This file was deleted.

test/SourceKit/CodeComplete/Inputs/parseable-interface/MyPointExtensions.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

test/SourceKit/CodeComplete/complete_swiftinterface.swift

Lines changed: 0 additions & 28 deletions
This file was deleted.

tools/swift-ide-test/swift-ide-test.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,6 @@ static llvm::cl::opt<std::string>
264264
ModuleCachePath("module-cache-path", llvm::cl::desc("Clang module cache path"),
265265
llvm::cl::cat(Category));
266266

267-
static llvm::cl::opt<bool>
268-
EnableParseableModuleInterface("enable-parseable-module-interface",
269-
llvm::cl::desc("Enable loading .swiftinterface files when available"),
270-
llvm::cl::cat(Category),
271-
llvm::cl::init(true));
272-
273267
static llvm::cl::opt<std::string>
274268
PCHOutputDir("pch-output-dir",
275269
llvm::cl::desc("place autogenerated PCH files in this directory"),
@@ -3207,8 +3201,6 @@ int main(int argc, char *argv[]) {
32073201
InitInvok.getLangOptions().EffectiveLanguageVersion = actual.getValue();
32083202
}
32093203
}
3210-
InitInvok.getFrontendOptions().EnableParseableModuleInterface =
3211-
options::EnableParseableModuleInterface;
32123204
InitInvok.getClangImporterOptions().ModuleCachePath =
32133205
options::ModuleCachePath;
32143206
InitInvok.getClangImporterOptions().PrecompiledHeaderOutputDir =

0 commit comments

Comments
 (0)