[PATCH] D39257: [Coverage] Provide a stable order for getInstantiationGroups

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 24 15:35:58 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL316523: [Coverage] Provide a stable order for getInstantiationGroups (authored by vedantk).

Changed prior to commit:
  https://reviews.llvm.org/D39257?vs=120131&id=120140#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D39257

Files:
  llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp


Index: llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
===================================================================
--- llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
+++ llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -33,6 +33,7 @@
 #include <cassert>
 #include <cstdint>
 #include <iterator>
+#include <map>
 #include <memory>
 #include <string>
 #include <system_error>
@@ -296,7 +297,7 @@
 /// An instantiation set is a collection of functions that have the same source
 /// code, ie, template functions specializations.
 class FunctionInstantiationSetCollector {
-  using MapT = DenseMap<LineColPair, std::vector<const FunctionRecord *>>;
+  using MapT = std::map<LineColPair, std::vector<const FunctionRecord *>>;
   MapT InstantiatedFunctions;
 
 public:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39257.120140.patch
Type: text/x-patch
Size: 798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171024/09311b05/attachment.bin>


More information about the llvm-commits mailing list