[PATCH] D45166: [ELF] - Introduce helper for iterating over linker commands.
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 2 09:42:40 PDT 2018
arichardson added inline comments.
================
Comment at: ELF/LinkerScript.h:317
+template <class T> static std::vector<T *> filter(ArrayRef<BaseCommand *> V) {
+ std::vector<T *> Ret;
----------------
Since this only seems to be used in foreach loops maybe using `llvm::make_filter_range` instead of creating a new vector would make sense?
https://reviews.llvm.org/D45166
More information about the llvm-commits
mailing list