projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29204c2
)
[ELF] - Simplify. NFC.
author
George Rimar
<grimar@accesssoftek.com>
Mon, 23 Apr 2018 14:41:49 +0000
(14:41 +0000)
committer
George Rimar
<grimar@accesssoftek.com>
Mon, 23 Apr 2018 14:41:49 +0000
(14:41 +0000)
llvm-svn: 330597
lld/ELF/CallGraphSort.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/CallGraphSort.cpp
b/lld/ELF/CallGraphSort.cpp
index
6ac0e12
..
3d9558c
100644
(file)
--- a/
lld/ELF/CallGraphSort.cpp
+++ b/
lld/ELF/CallGraphSort.cpp
@@
-214,11
+214,9
@@
void CallGraphSort::groupClusters() {
}
// Remove empty or dead nodes. Invalidates all cluster indices.
- Clusters.erase(std::remove_if(Clusters.begin(), Clusters.end(),
- [](const Cluster &C) {
- return C.Size == 0 || C.Sections.empty();
- }),
- Clusters.end());
+ llvm::erase_if(Clusters, [](const Cluster &C) {
+ return C.Size == 0 || C.Sections.empty();
+ });
// Sort by density.
std::sort(Clusters.begin(), Clusters.end(),