[PATCH] D48757: Implements /force:multiple in lld-link
Ryan Goulden via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 12 18:45:28 PDT 2018
ryan added inline comments.
================
Comment at: COFF/SymbolTable.cpp:359
reportDuplicate(S, F);
- return nullptr;
+ return dyn_cast<DefinedImportData>(S);
}
----------------
ruiu wrote:
> Do you have to change this
I don't know. It just felt in the spirit of /force:multiple to use the existing symbol. (Doesn't impact me personally, I was just wanted /force for function symbols).
Do you think it's better to return null in this case? (There's other options here too, e.g. forcing the replaceSymbol case when /force:multiple is on.)
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D48757
More information about the llvm-commits
mailing list