[PATCH] D34689: [LLD][ELF] Pre-create ThunkSections at Target specific intervals

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 18 01:47:38 PDT 2017


grimar added a comment.

Just a minor nit I noticed.



================
Comment at: ELF/Relocations.cpp:987
+            Thunks, [](const ThunkSection *TS) { return TS->getSize() == 0; }),
+        Thunks.end());
+    if (Thunks.empty())
----------------
You can use `llvm::erase_if` which is equivalent to ` C.erase(remove_if(C, pred), C.end());`


https://reviews.llvm.org/D34689





More information about the llvm-commits mailing list