diff options
author | Fangrui Song <maskray@google.com> | 2019-04-22 15:53:43 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-22 15:53:43 +0000 |
commit | a5355a5ed16c51f3d582181105e31be508087467 (patch) | |
tree | b692540c69f8d077eac8b3bc011d2b953e3d9ca8 /llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp | |
parent | 4256cf1b0401acec951e36a3f58a5ad318358ef7 (diff) | |
download | bcm5719-llvm-a5355a5ed16c51f3d582181105e31be508087467.tar.gz bcm5719-llvm-a5355a5ed16c51f3d582181105e31be508087467.zip |
Use llvm::stable_sort. NFC
llvm-svn: 358897
Diffstat (limited to 'llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp')
-rw-r--r-- | llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp b/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp index 28d93e8f7bb..4ad26bef20c 100644 --- a/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp +++ b/llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp @@ -317,10 +317,10 @@ static inline std::string formatModuleDetailKind(SymbolKind K) { std::vector<StatCollection::KindAndStat> StatCollection::getStatsSortedBySize() const { std::vector<KindAndStat> SortedStats(Individual.begin(), Individual.end()); - std::stable_sort(SortedStats.begin(), SortedStats.end(), - [](const KindAndStat &LHS, const KindAndStat &RHS) { - return LHS.second.Size > RHS.second.Size; - }); + llvm::stable_sort(SortedStats, + [](const KindAndStat &LHS, const KindAndStat &RHS) { + return LHS.second.Size > RHS.second.Size; + }); return SortedStats; } @@ -889,10 +889,10 @@ Error DumpOutputStyle::dumpUdtStats() { std::vector<StrAndStat> NamespacedStatsSorted; for (const auto &Stat : NamespacedStats) NamespacedStatsSorted.push_back({Stat.getKey(), Stat.second}); - std::stable_sort(NamespacedStatsSorted.begin(), NamespacedStatsSorted.end(), - [](const StrAndStat &L, const StrAndStat &R) { - return L.Stat.Size > R.Stat.Size; - }); + llvm::stable_sort(NamespacedStatsSorted, + [](const StrAndStat &L, const StrAndStat &R) { + return L.Stat.Size > R.Stat.Size; + }); for (const auto &Stat : NamespacedStatsSorted) { std::string Label = formatv("namespace '{0}'", Stat.Key); P.formatLine("{0} | {1:N} {2:N}", |