[lld] [lld][COFF] Fix: Merge `.drectve` sections in ObjFile::readSections (PR #86380)

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 23 07:30:11 PDT 2024


================
@@ -368,111 +368,116 @@ bool LinkerDriver::isDecorated(StringRef sym) {
 // Parses .drectve section contents and returns a list of files
 // specified by /defaultlib.
 void LinkerDriver::parseDirectives(InputFile *file) {
----------------
aganea wrote:

Can you add another function above this one, which iterates on the directives vector and calls this one, but with an extra `s` arg? And probably make this function private.

https://github.com/llvm/llvm-project/pull/86380


More information about the llvm-commits mailing list