[PATCH] D23122: [ELF] Linkerscript: remove repeated sections in LinkerScript<ELFT>::filter

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 3 10:59:22 PDT 2016


ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.

LGTM


================
Comment at: ELF/LinkerScript.cpp:194
@@ +193,3 @@
+template <class R, class T>
+static inline void removeElements(R &Range, const T &Pred) {
+  Range.erase(std::remove_if(Range.begin(), Range.end(), Pred), Range.end());
----------------
This is basically remove_if, so let's name `removeIf`.


Repository:
  rL LLVM

https://reviews.llvm.org/D23122





More information about the llvm-commits mailing list