From c851d216e27fc7cad63c1886b4066197777a8d3b Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Mon, 25 Apr 2016 21:09:51 +0000 Subject: [ThinLTO] Introduce typedef for commonly-used map type (NFC) Add a typedef for the std::map map that is passed around to identify summaries for values defined in a particular module. This shortens up declarations in a variety of places. llvm-svn: 267471 --- llvm/lib/IR/ModuleSummaryIndex.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp') diff --git a/llvm/lib/IR/ModuleSummaryIndex.cpp b/llvm/lib/IR/ModuleSummaryIndex.cpp index 4c122c7241e..6107cf40a08 100644 --- a/llvm/lib/IR/ModuleSummaryIndex.cpp +++ b/llvm/lib/IR/ModuleSummaryIndex.cpp @@ -68,8 +68,7 @@ void ModuleSummaryIndex::removeEmptySummaryEntries() { // Collect for the given module the list of function it defines // (GUID -> Summary). void ModuleSummaryIndex::collectDefinedFunctionsForModule( - StringRef ModulePath, - std::map &GVSummaryMap) const { + StringRef ModulePath, GVSummaryMapTy &GVSummaryMap) const { for (auto &GlobalList : *this) { auto GUID = GlobalList.first; for (auto &GlobSummary : GlobalList.second) { @@ -87,8 +86,7 @@ void ModuleSummaryIndex::collectDefinedFunctionsForModule( // Collect for each module the list of function it defines (GUID -> Summary). void ModuleSummaryIndex::collectDefinedGVSummariesPerModule( - StringMap> - &ModuleToDefinedGVSummaries) const { + StringMap &ModuleToDefinedGVSummaries) const { for (auto &GlobalList : *this) { auto GUID = GlobalList.first; for (auto &Summary : GlobalList.second) { -- cgit v1.2.3