[PATCH] D22795: [LinkerScript] Support EXCLUDE_FILE inside KEEP
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 26 17:49:25 PDT 2016
davide added inline comments.
================
Comment at: ELF/LinkerScript.cpp:681
@@ -672,2 +680,3 @@
+ InCmd->ExcludedFiles.push_back(next());
Opt.KeptSections.push_back(peek());
InCmd->Patterns.push_back(next());
----------------
ruiu wrote:
> KeptSections shouldn't be updated in this function because this function should be agnostic of the context.
So maybe we can pass an argument `std::vector<StringRef>` to collect the list of tokens and use that in readKeep() ?
https://reviews.llvm.org/D22795
More information about the llvm-commits
mailing list