diff options
author | Kazu Hirata <kazu@google.com> | 2024-08-28 10:42:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 10:42:12 -0700 |
commit | 4f15039cf2d59dbb889903aff8ac32ff266c8c48 (patch) | |
tree | 5a131ada67ddf04ce85a8ecabcc7b652045032c0 /llvm/lib/LTO/LTO.cpp | |
parent | 1bde8e0b80860743fcd55da28f0ba9acb7a26a9c (diff) | |
download | llvm-4f15039cf2d59dbb889903aff8ac32ff266c8c48.zip llvm-4f15039cf2d59dbb889903aff8ac32ff266c8c48.tar.gz llvm-4f15039cf2d59dbb889903aff8ac32ff266c8c48.tar.bz2 |
[LTO] Introduce new type alias ImportListsTy (NFC) (#106420)
The background is as follows. I'm planning to reduce the memory
footprint of ThinLTO indexing by changing ImportMapTy, the data
structure used for an import list. Once this patch lands, I'm
planning to change the type slightly. The new type alias allows us to
update the type without touching many places.
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index bd03133..09dfec0 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -1716,8 +1716,7 @@ Error LTO::runThinLTO(AddStreamFn AddStream, FileCache Cache, // Synthesize entry counts for functions in the CombinedIndex. computeSyntheticCounts(ThinLTO.CombinedIndex); - DenseMap<StringRef, FunctionImporter::ImportMapTy> ImportLists( - ThinLTO.ModuleMap.size()); + FunctionImporter::ImportListsTy ImportLists(ThinLTO.ModuleMap.size()); DenseMap<StringRef, FunctionImporter::ExportSetTy> ExportLists( ThinLTO.ModuleMap.size()); StringMap<std::map<GlobalValue::GUID, GlobalValue::LinkageTypes>> ResolvedODR; |