[llvm] r316523 - [Coverage] Provide a stable order for getInstantiationGroups
Vedant Kumar via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 15:35:29 PDT 2017
Author: vedantk
Date: Tue Oct 24 15:35:29 2017
New Revision: 316523
URL: http://llvm.org/viewvc/llvm-project?rev=316523&view=rev
Log:
[Coverage] Provide a stable order for getInstantiationGroups
Differential Revision: https://reviews.llvm.org/D39257
Modified:
llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
Modified: llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp?rev=316523&r1=316522&r2=316523&view=diff
==============================================================================
--- llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp (original)
+++ llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp Tue Oct 24 15:35:29 2017
@@ -33,6 +33,7 @@
#include <cassert>
#include <cstdint>
#include <iterator>
+#include <map>
#include <memory>
#include <string>
#include <system_error>
@@ -296,7 +297,7 @@ namespace {
/// 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:
More information about the llvm-commits
mailing list