mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-08-26 19:50:41 -04:00
[ThinLTO] Introduce typedef for commonly-used map type (NFC)
Add a typedef for the std::map<GlobalValue::GUID, GlobalValueSummary *> 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
This commit is contained in:
@@ -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<GlobalValue::GUID, GlobalValueSummary *> &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<std::map<GlobalValue::GUID, GlobalValueSummary *>>
|
||||
&ModuleToDefinedGVSummaries) const {
|
||||
StringMap<GVSummaryMapTy> &ModuleToDefinedGVSummaries) const {
|
||||
for (auto &GlobalList : *this) {
|
||||
auto GUID = GlobalList.first;
|
||||
for (auto &Summary : GlobalList.second) {
|
||||
|
||||
Reference in New Issue
Block a user