@@ -229,19 +229,13 @@ class ModuleDependencyInfoStorageBase {
229229
230230struct CommonSwiftTextualModuleDependencyDetails {
231231 CommonSwiftTextualModuleDependencyDetails (
232- ArrayRef<StringRef> extraPCMArgs, ArrayRef<StringRef> buildCommandLine,
232+ ArrayRef<StringRef> buildCommandLine,
233233 StringRef CASFileSystemRootID)
234- : extraPCMArgs(extraPCMArgs.begin(), extraPCMArgs.end()),
235- bridgingHeaderFile (std::nullopt ),
234+ : bridgingHeaderFile(std::nullopt ),
236235 bridgingSourceFiles (), bridgingModuleDependencies(),
237236 buildCommandLine(buildCommandLine.begin(), buildCommandLine.end()),
238237 CASFileSystemRootID(CASFileSystemRootID) {}
239238
240- // / To build a PCM to be used by this Swift module, we need to append these
241- // / arguments to the generic PCM build arguments reported from the dependency
242- // / graph.
243- const std::vector<std::string> extraPCMArgs;
244-
245239 // / Bridging header file, if there is one.
246240 std::optional<std::string> bridgingHeaderFile;
247241
@@ -299,7 +293,7 @@ class SwiftInterfaceModuleDependenciesStorage
299293 ArrayRef<ScannerImportStatementInfo> moduleImports,
300294 ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
301295 ArrayRef<StringRef> buildCommandLine, ArrayRef<LinkLibrary> linkLibraries,
302- ArrayRef<StringRef> extraPCMArgs, StringRef contextHash, bool isFramework,
296+ StringRef contextHash, bool isFramework,
303297 bool isStatic, StringRef RootID, StringRef moduleCacheKey,
304298 StringRef userModuleVersion)
305299 : ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftInterface,
@@ -310,7 +304,7 @@ class SwiftInterfaceModuleDependenciesStorage
310304 compiledModuleCandidates(compiledModuleCandidates.begin(),
311305 compiledModuleCandidates.end()),
312306 contextHash(contextHash), isFramework(isFramework), isStatic(isStatic),
313- textualModuleDetails(extraPCMArgs, buildCommandLine, RootID),
307+ textualModuleDetails(buildCommandLine, RootID),
314308 userModuleVersion(userModuleVersion) {}
315309
316310 ModuleDependencyInfoStorageBase *clone () const override {
@@ -348,11 +342,10 @@ class SwiftSourceModuleDependenciesStorage
348342 StringRef RootID, ArrayRef<StringRef> buildCommandLine,
349343 ArrayRef<ScannerImportStatementInfo> moduleImports,
350344 ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
351- ArrayRef<StringRef> bridgingHeaderBuildCommandLine,
352- ArrayRef<StringRef> extraPCMArgs)
345+ ArrayRef<StringRef> bridgingHeaderBuildCommandLine)
353346 : ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftSource,
354347 moduleImports, optionalModuleImports, {}),
355- textualModuleDetails (extraPCMArgs, buildCommandLine, RootID),
348+ textualModuleDetails (buildCommandLine, RootID),
356349 testableImports (llvm::StringSet<>()),
357350 bridgingHeaderBuildCommandLine (bridgingHeaderBuildCommandLine.begin(),
358351 bridgingHeaderBuildCommandLine.end()) {}
@@ -476,10 +469,6 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
476469 // / The file dependencies
477470 const std::vector<std::string> fileDependencies;
478471
479- // / The swift-specific PCM arguments captured by this dependencies object
480- // / as found by the scanning action that discovered it
481- const std::vector<std::string> capturedPCMArgs;
482-
483472 // / CASID for the Root of CASFS. Empty if CAS is not used.
484473 std::string CASFileSystemRootID;
485474
@@ -493,7 +482,6 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
493482 StringRef moduleMapFile, StringRef contextHash,
494483 ArrayRef<std::string> buildCommandLine,
495484 ArrayRef<std::string> fileDependencies,
496- ArrayRef<std::string> capturedPCMArgs,
497485 ArrayRef<LinkLibrary> linkLibraries,
498486 StringRef CASFileSystemRootID,
499487 StringRef clangIncludeTreeRoot,
@@ -504,7 +492,6 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
504492 pcmOutputPath (pcmOutputPath), mappedPCMPath(mappedPCMPath),
505493 moduleMapFile (moduleMapFile), contextHash(contextHash),
506494 buildCommandLine (buildCommandLine), fileDependencies(fileDependencies),
507- capturedPCMArgs (capturedPCMArgs),
508495 CASFileSystemRootID (CASFileSystemRootID),
509496 CASClangIncludeTreeRootID (clangIncludeTreeRoot), IsSystem(IsSystem) {}
510497
@@ -588,15 +575,15 @@ class ModuleDependencyInfo {
588575 ArrayRef<StringRef> compiledCandidates, ArrayRef<StringRef> buildCommands,
589576 ArrayRef<ScannerImportStatementInfo> moduleImports,
590577 ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
591- ArrayRef<LinkLibrary> linkLibraries, ArrayRef<StringRef> extraPCMArgs,
578+ ArrayRef<LinkLibrary> linkLibraries,
592579 StringRef contextHash, bool isFramework, bool isStatic,
593580 StringRef CASFileSystemRootID, StringRef moduleCacheKey,
594581 StringRef userModuleVersion) {
595582 return ModuleDependencyInfo (
596583 std::make_unique<SwiftInterfaceModuleDependenciesStorage>(
597584 moduleOutputPath, swiftInterfaceFile, compiledCandidates,
598585 moduleImports, optionalModuleImports,
599- buildCommands, linkLibraries, extraPCMArgs, contextHash,
586+ buildCommands, linkLibraries, contextHash,
600587 isFramework, isStatic, CASFileSystemRootID, moduleCacheKey,
601588 userModuleVersion));
602589 }
@@ -624,13 +611,11 @@ class ModuleDependencyInfo {
624611 ArrayRef<StringRef> buildCommands,
625612 ArrayRef<ScannerImportStatementInfo> moduleImports,
626613 ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
627- ArrayRef<StringRef> bridgingHeaderBuildCommands,
628- ArrayRef<StringRef> extraPCMArgs) {
614+ ArrayRef<StringRef> bridgingHeaderBuildCommands) {
629615 return ModuleDependencyInfo (
630616 std::make_unique<SwiftSourceModuleDependenciesStorage>(
631617 CASFileSystemRootID, buildCommands, moduleImports,
632- optionalModuleImports, bridgingHeaderBuildCommands,
633- extraPCMArgs));
618+ optionalModuleImports, bridgingHeaderBuildCommands));
634619 }
635620
636621 static ModuleDependencyInfo
@@ -640,7 +625,6 @@ class ModuleDependencyInfo {
640625 StringRef (), ArrayRef<StringRef>(),
641626 ArrayRef<ScannerImportStatementInfo>(),
642627 ArrayRef<ScannerImportStatementInfo>(),
643- ArrayRef<StringRef>(),
644628 ArrayRef<StringRef>()));
645629 }
646630
@@ -650,12 +634,11 @@ class ModuleDependencyInfo {
650634 StringRef pcmOutputPath, StringRef mappedPCMPath, StringRef moduleMapFile,
651635 StringRef contextHash, ArrayRef<std::string> nonPathCommandLine,
652636 ArrayRef<std::string> fileDependencies,
653- ArrayRef<std::string> capturedPCMArgs,
654637 ArrayRef<LinkLibrary> linkLibraries, StringRef CASFileSystemRootID,
655638 StringRef clangIncludeTreeRoot, StringRef moduleCacheKey, bool IsSystem) {
656639 return ModuleDependencyInfo (std::make_unique<ClangModuleDependencyStorage>(
657640 pcmOutputPath, mappedPCMPath, moduleMapFile, contextHash,
658- nonPathCommandLine, fileDependencies, capturedPCMArgs, linkLibraries,
641+ nonPathCommandLine, fileDependencies, linkLibraries,
659642 CASFileSystemRootID, clangIncludeTreeRoot, moduleCacheKey, IsSystem));
660643 }
661644
0 commit comments