@@ -229,19 +229,13 @@ class ModuleDependencyInfoStorageBase {
229
229
230
230
struct CommonSwiftTextualModuleDependencyDetails {
231
231
CommonSwiftTextualModuleDependencyDetails (
232
- ArrayRef<StringRef> extraPCMArgs, ArrayRef<StringRef> buildCommandLine,
232
+ ArrayRef<StringRef> buildCommandLine,
233
233
StringRef CASFileSystemRootID)
234
- : extraPCMArgs(extraPCMArgs.begin(), extraPCMArgs.end()),
235
- bridgingHeaderFile (std::nullopt),
234
+ : bridgingHeaderFile(std::nullopt),
236
235
bridgingSourceFiles (), bridgingModuleDependencies(),
237
236
buildCommandLine(buildCommandLine.begin(), buildCommandLine.end()),
238
237
CASFileSystemRootID(CASFileSystemRootID) {}
239
238
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
-
245
239
// / Bridging header file, if there is one.
246
240
std::optional<std::string> bridgingHeaderFile;
247
241
@@ -299,7 +293,7 @@ class SwiftInterfaceModuleDependenciesStorage
299
293
ArrayRef<ScannerImportStatementInfo> moduleImports,
300
294
ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
301
295
ArrayRef<StringRef> buildCommandLine, ArrayRef<LinkLibrary> linkLibraries,
302
- ArrayRef<StringRef> extraPCMArgs, StringRef contextHash, bool isFramework,
296
+ StringRef contextHash, bool isFramework,
303
297
bool isStatic, StringRef RootID, StringRef moduleCacheKey,
304
298
StringRef userModuleVersion)
305
299
: ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftInterface,
@@ -310,7 +304,7 @@ class SwiftInterfaceModuleDependenciesStorage
310
304
compiledModuleCandidates(compiledModuleCandidates.begin(),
311
305
compiledModuleCandidates.end()),
312
306
contextHash(contextHash), isFramework(isFramework), isStatic(isStatic),
313
- textualModuleDetails(extraPCMArgs, buildCommandLine, RootID),
307
+ textualModuleDetails(buildCommandLine, RootID),
314
308
userModuleVersion(userModuleVersion) {}
315
309
316
310
ModuleDependencyInfoStorageBase *clone () const override {
@@ -348,11 +342,10 @@ class SwiftSourceModuleDependenciesStorage
348
342
StringRef RootID, ArrayRef<StringRef> buildCommandLine,
349
343
ArrayRef<ScannerImportStatementInfo> moduleImports,
350
344
ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
351
- ArrayRef<StringRef> bridgingHeaderBuildCommandLine,
352
- ArrayRef<StringRef> extraPCMArgs)
345
+ ArrayRef<StringRef> bridgingHeaderBuildCommandLine)
353
346
: ModuleDependencyInfoStorageBase(ModuleDependencyKind::SwiftSource,
354
347
moduleImports, optionalModuleImports, {}),
355
- textualModuleDetails (extraPCMArgs, buildCommandLine, RootID),
348
+ textualModuleDetails (buildCommandLine, RootID),
356
349
testableImports (llvm::StringSet<>()),
357
350
bridgingHeaderBuildCommandLine (bridgingHeaderBuildCommandLine.begin(),
358
351
bridgingHeaderBuildCommandLine.end()) {}
@@ -476,10 +469,6 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
476
469
// / The file dependencies
477
470
const std::vector<std::string> fileDependencies;
478
471
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
-
483
472
// / CASID for the Root of CASFS. Empty if CAS is not used.
484
473
std::string CASFileSystemRootID;
485
474
@@ -493,7 +482,6 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
493
482
StringRef moduleMapFile, StringRef contextHash,
494
483
ArrayRef<std::string> buildCommandLine,
495
484
ArrayRef<std::string> fileDependencies,
496
- ArrayRef<std::string> capturedPCMArgs,
497
485
ArrayRef<LinkLibrary> linkLibraries,
498
486
StringRef CASFileSystemRootID,
499
487
StringRef clangIncludeTreeRoot,
@@ -504,7 +492,6 @@ class ClangModuleDependencyStorage : public ModuleDependencyInfoStorageBase {
504
492
pcmOutputPath (pcmOutputPath), mappedPCMPath(mappedPCMPath),
505
493
moduleMapFile (moduleMapFile), contextHash(contextHash),
506
494
buildCommandLine (buildCommandLine), fileDependencies(fileDependencies),
507
- capturedPCMArgs (capturedPCMArgs),
508
495
CASFileSystemRootID (CASFileSystemRootID),
509
496
CASClangIncludeTreeRootID (clangIncludeTreeRoot), IsSystem(IsSystem) {}
510
497
@@ -588,15 +575,15 @@ class ModuleDependencyInfo {
588
575
ArrayRef<StringRef> compiledCandidates, ArrayRef<StringRef> buildCommands,
589
576
ArrayRef<ScannerImportStatementInfo> moduleImports,
590
577
ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
591
- ArrayRef<LinkLibrary> linkLibraries, ArrayRef<StringRef> extraPCMArgs,
578
+ ArrayRef<LinkLibrary> linkLibraries,
592
579
StringRef contextHash, bool isFramework, bool isStatic,
593
580
StringRef CASFileSystemRootID, StringRef moduleCacheKey,
594
581
StringRef userModuleVersion) {
595
582
return ModuleDependencyInfo (
596
583
std::make_unique<SwiftInterfaceModuleDependenciesStorage>(
597
584
moduleOutputPath, swiftInterfaceFile, compiledCandidates,
598
585
moduleImports, optionalModuleImports,
599
- buildCommands, linkLibraries, extraPCMArgs, contextHash,
586
+ buildCommands, linkLibraries, contextHash,
600
587
isFramework, isStatic, CASFileSystemRootID, moduleCacheKey,
601
588
userModuleVersion));
602
589
}
@@ -624,13 +611,11 @@ class ModuleDependencyInfo {
624
611
ArrayRef<StringRef> buildCommands,
625
612
ArrayRef<ScannerImportStatementInfo> moduleImports,
626
613
ArrayRef<ScannerImportStatementInfo> optionalModuleImports,
627
- ArrayRef<StringRef> bridgingHeaderBuildCommands,
628
- ArrayRef<StringRef> extraPCMArgs) {
614
+ ArrayRef<StringRef> bridgingHeaderBuildCommands) {
629
615
return ModuleDependencyInfo (
630
616
std::make_unique<SwiftSourceModuleDependenciesStorage>(
631
617
CASFileSystemRootID, buildCommands, moduleImports,
632
- optionalModuleImports, bridgingHeaderBuildCommands,
633
- extraPCMArgs));
618
+ optionalModuleImports, bridgingHeaderBuildCommands));
634
619
}
635
620
636
621
static ModuleDependencyInfo
@@ -640,7 +625,6 @@ class ModuleDependencyInfo {
640
625
StringRef (), ArrayRef<StringRef>(),
641
626
ArrayRef<ScannerImportStatementInfo>(),
642
627
ArrayRef<ScannerImportStatementInfo>(),
643
- ArrayRef<StringRef>(),
644
628
ArrayRef<StringRef>()));
645
629
}
646
630
@@ -650,12 +634,11 @@ class ModuleDependencyInfo {
650
634
StringRef pcmOutputPath, StringRef mappedPCMPath, StringRef moduleMapFile,
651
635
StringRef contextHash, ArrayRef<std::string> nonPathCommandLine,
652
636
ArrayRef<std::string> fileDependencies,
653
- ArrayRef<std::string> capturedPCMArgs,
654
637
ArrayRef<LinkLibrary> linkLibraries, StringRef CASFileSystemRootID,
655
638
StringRef clangIncludeTreeRoot, StringRef moduleCacheKey, bool IsSystem) {
656
639
return ModuleDependencyInfo (std::make_unique<ClangModuleDependencyStorage>(
657
640
pcmOutputPath, mappedPCMPath, moduleMapFile, contextHash,
658
- nonPathCommandLine, fileDependencies, capturedPCMArgs, linkLibraries,
641
+ nonPathCommandLine, fileDependencies, linkLibraries,
659
642
CASFileSystemRootID, clangIncludeTreeRoot, moduleCacheKey, IsSystem));
660
643
}
661
644
0 commit comments