@@ -2246,11 +2246,10 @@ struct ExplicitSwiftModuleLoader::Implementation {
22462246 }
22472247
22482248 void addCommandLineExplicitInputs (
2249- const std::vector<std::pair<std::string, std::string>>
2250- &commandLineExplicitInputs) {
2249+ const llvm::StringMap<std::string> &commandLineExplicitInputs) {
22512250 for (const auto &moduleInput : commandLineExplicitInputs) {
2252- ExplicitSwiftModuleInputInfo entry (moduleInput.second , {}, {}, {});
2253- ExplicitModuleMap.try_emplace (moduleInput.first , std::move (entry));
2251+ ExplicitSwiftModuleInputInfo entry (moduleInput.getValue () , {}, {}, {});
2252+ ExplicitModuleMap.try_emplace (moduleInput.first () , std::move (entry));
22542253 }
22552254 }
22562255};
@@ -2422,7 +2421,7 @@ std::unique_ptr<ExplicitSwiftModuleLoader>
24222421ExplicitSwiftModuleLoader::create (ASTContext &ctx,
24232422 DependencyTracker *tracker, ModuleLoadingMode loadMode,
24242423 StringRef ExplicitSwiftModuleMap,
2425- const std::vector <std::pair<std:: string, std::string> > &ExplicitSwiftModuleInputs,
2424+ const llvm::StringMap <std::string> &ExplicitSwiftModuleInputs,
24262425 bool IgnoreSwiftSourceInfoFile) {
24272426 auto result = std::unique_ptr<ExplicitSwiftModuleLoader>(
24282427 new ExplicitSwiftModuleLoader (ctx, tracker, loadMode,
@@ -2536,11 +2535,10 @@ struct ExplicitCASModuleLoader::Implementation {
25362535 }
25372536
25382537 void addCommandLineExplicitInputs (
2539- const std::vector<std::pair<std::string, std::string>>
2540- &commandLineExplicitInputs) {
2538+ const llvm::StringMap<std::string> &commandLineExplicitInputs) {
25412539 for (const auto &moduleInput : commandLineExplicitInputs) {
2542- ExplicitSwiftModuleInputInfo entry (moduleInput.second , {}, {}, {});
2543- ExplicitModuleMap.try_emplace (moduleInput.first , std::move (entry));
2540+ ExplicitSwiftModuleInputInfo entry (moduleInput.getValue () , {}, {}, {});
2541+ ExplicitModuleMap.try_emplace (moduleInput.getKey () , std::move (entry));
25442542 }
25452543 }
25462544
@@ -2777,8 +2775,7 @@ std::unique_ptr<ExplicitCASModuleLoader> ExplicitCASModuleLoader::create(
27772775 ASTContext &ctx, llvm::cas::ObjectStore &CAS, llvm::cas::ActionCache &cache,
27782776 DependencyTracker *tracker, ModuleLoadingMode loadMode,
27792777 StringRef ExplicitSwiftModuleMap,
2780- const std::vector<std::pair<std::string, std::string>>
2781- &ExplicitSwiftModuleInputs,
2778+ const llvm::StringMap<std::string> &ExplicitSwiftModuleInputs,
27822779 bool IgnoreSwiftSourceInfoFile) {
27832780 auto result =
27842781 std::unique_ptr<ExplicitCASModuleLoader>(new ExplicitCASModuleLoader (
0 commit comments