From dbd7ce0ccd3a88f2c1d6e47d31da63a48cafdc8f Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 23 Aug 2024 17:32:52 -0700 Subject: [IR] Inroduce ModuleToSummariesForIndexTy (NFC) (#105906) This patch introduces type alias ModuleToSummariesForIndexTy. I'm planning to change the type slightly to allow heterogeneous lookup (that is, std::map>) in a subsequent patch. The problem is that changing the type affects many places. Using a type alias reduces the impact. --- llvm/lib/LTO/LTO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/LTO/LTO.cpp') diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index ee01933..bd03133 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -1399,7 +1399,7 @@ public: Error emitFiles(const FunctionImporter::ImportMapTy &ImportList, llvm::StringRef ModulePath, const std::string &NewModulePath) { - std::map ModuleToSummariesForIndex; + ModuleToSummariesForIndexTy ModuleToSummariesForIndex; GVSummaryPtrSet DeclarationSummaries; std::error_code EC; -- cgit v1.1