[PATCH] D45139: [ProfileData] Change std::sort to llvm::sort in response to r327219
Mandeep Singh Grang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 13 12:49:55 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330057: [ProfileData] Change std::sort to llvm::sort in response to r327219 (authored by mgrang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D45139?vs=140567&id=142456#toc
Repository:
rL LLVM
https://reviews.llvm.org/D45139
Files:
llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
llvm/trunk/lib/ProfileData/GCOV.cpp
llvm/trunk/lib/ProfileData/ProfileSummaryBuilder.cpp
Index: llvm/trunk/lib/ProfileData/ProfileSummaryBuilder.cpp
===================================================================
--- llvm/trunk/lib/ProfileData/ProfileSummaryBuilder.cpp
+++ llvm/trunk/lib/ProfileData/ProfileSummaryBuilder.cpp
@@ -58,7 +58,7 @@
void ProfileSummaryBuilder::computeDetailedSummary() {
if (DetailedSummaryCutoffs.empty())
return;
- std::sort(DetailedSummaryCutoffs.begin(), DetailedSummaryCutoffs.end());
+ llvm::sort(DetailedSummaryCutoffs.begin(), DetailedSummaryCutoffs.end());
auto Iter = CountFrequencies.begin();
const auto End = CountFrequencies.end();
Index: llvm/trunk/lib/ProfileData/GCOV.cpp
===================================================================
--- llvm/trunk/lib/ProfileData/GCOV.cpp
+++ llvm/trunk/lib/ProfileData/GCOV.cpp
@@ -592,7 +592,7 @@
SmallVector<StringRef, 4> Filenames;
for (const auto &LI : LineInfo)
Filenames.push_back(LI.first());
- std::sort(Filenames.begin(), Filenames.end());
+ llvm::sort(Filenames.begin(), Filenames.end());
for (StringRef Filename : Filenames) {
auto AllLines = LineConsumer(Filename);
Index: llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
===================================================================
--- llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
+++ llvm/trunk/lib/ProfileData/Coverage/CoverageMapping.cpp
@@ -83,7 +83,7 @@
return Counter::getZero();
// Group the terms by counter ID.
- std::sort(Terms.begin(), Terms.end(), [](const Term &LHS, const Term &RHS) {
+ llvm::sort(Terms.begin(), Terms.end(), [](const Term &LHS, const Term &RHS) {
return LHS.CounterID < RHS.CounterID;
});
@@ -457,8 +457,8 @@
/// Sort a nested sequence of regions from a single file.
static void sortNestedRegions(MutableArrayRef<CountedRegion> Regions) {
- std::sort(Regions.begin(), Regions.end(), [](const CountedRegion &LHS,
- const CountedRegion &RHS) {
+ llvm::sort(Regions.begin(), Regions.end(), [](const CountedRegion &LHS,
+ const CountedRegion &RHS) {
if (LHS.startLoc() != RHS.startLoc())
return LHS.startLoc() < RHS.startLoc();
if (LHS.endLoc() != RHS.endLoc())
@@ -555,7 +555,7 @@
for (const auto &Function : getCoveredFunctions())
Filenames.insert(Filenames.end(), Function.Filenames.begin(),
Function.Filenames.end());
- std::sort(Filenames.begin(), Filenames.end());
+ llvm::sort(Filenames.begin(), Filenames.end());
auto Last = std::unique(Filenames.begin(), Filenames.end());
Filenames.erase(Last, Filenames.end());
return Filenames;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45139.142456.patch
Type: text/x-patch
Size: 2697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180413/bb59157b/attachment.bin>
More information about the llvm-commits
mailing list