]> granicus.if.org Git - clang/commitdiff
Use DenseMap instead std::map for GVSummaryMapTy
authorDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 20:31:37 +0000 (20:31 +0000)
committerDehao Chen <dehao@google.com>
Mon, 10 Jul 2017 20:31:37 +0000 (20:31 +0000)
Summary: Frontend change for https://reviews.llvm.org/D35148

Reviewers: tejohnson

Reviewed By: tejohnson

Subscribers: sanjoy, cfe-commits

Differential Revision: https://reviews.llvm.org/D35153

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307584 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BackendUtil.cpp

index 9b3850abcce7c89a58974b0f0875f8b03f19cb74..513896d98634501ffcb6acc9123b81ab39b5897d 100644 (file)
@@ -998,7 +998,7 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
                               std::unique_ptr<raw_pwrite_stream> OS,
                               std::string SampleProfile,
                               BackendAction Action) {
-  StringMap<std::map<GlobalValue::GUID, GlobalValueSummary *>>
+  StringMap<DenseMap<GlobalValue::GUID, GlobalValueSummary *>>
       ModuleToDefinedGVSummaries;
   CombinedIndex->collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);