diff options
author | Kazu Hirata <kazu@google.com> | 2024-08-23 17:32:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-23 17:32:52 -0700 |
commit | dbd7ce0ccd3a88f2c1d6e47d31da63a48cafdc8f (patch) | |
tree | d1cbb40f2f30440f1c2ddf2b4cd475145de243d6 /llvm/lib/LTO/LTO.cpp | |
parent | ca53611c905f82628ab2e40185307995b552e14d (diff) | |
download | llvm-dbd7ce0ccd3a88f2c1d6e47d31da63a48cafdc8f.zip llvm-dbd7ce0ccd3a88f2c1d6e47d31da63a48cafdc8f.tar.gz llvm-dbd7ce0ccd3a88f2c1d6e47d31da63a48cafdc8f.tar.bz2 |
[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<K, V, std::less<>>) in a subsequent patch. The
problem is that changing the type affects many places. Using a type
alias reduces the impact.
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string, GVSummaryMapTy> ModuleToSummariesForIndex; + ModuleToSummariesForIndexTy ModuleToSummariesForIndex; GVSummaryPtrSet DeclarationSummaries; std::error_code EC; |