mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
Conflicts: test/IRGen/opaque-pointer-llvm.swift
This commit is contained in:
@@ -477,12 +477,19 @@ SerializedModuleLoaderBase::scanModuleFile(Twine modulePath, bool isFramework) {
|
||||
|
||||
auto importedHeaderSet = binaryModuleImports.get().headerImports;
|
||||
std::vector<std::string> importedHeaders;
|
||||
importedHeaders.reserve(importedHeaderSet.size());
|
||||
llvm::transform(importedHeaderSet.keys(),
|
||||
std::back_inserter(importedHeaders),
|
||||
[](llvm::StringRef N) {
|
||||
return N.str();
|
||||
});
|
||||
// FIXME: We only record these dependencies in CAS mode, because
|
||||
// we require explicit PCH tasks to be produced for imported header
|
||||
// of binary module dependencies. In the meantime, in non-CAS mode
|
||||
// loading clients will consume the `.h` files encoded in the `.swiftmodules`
|
||||
// directly.
|
||||
if (Ctx.ClangImporterOpts.CASOpts) {
|
||||
importedHeaders.reserve(importedHeaderSet.size());
|
||||
llvm::transform(importedHeaderSet.keys(),
|
||||
std::back_inserter(importedHeaders),
|
||||
[](llvm::StringRef N) {
|
||||
return N.str();
|
||||
});
|
||||
}
|
||||
|
||||
auto &importedOptionalModuleSet = binaryModuleOptionalImports.get().moduleImports;
|
||||
std::vector<std::string> importedOptionalModuleNames;
|
||||
|
||||
Reference in New Issue
Block a user