[lld] lld: add support for NOCROSSREFS(_TO) (PR #95714)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 17:03:08 PDT 2024
================
@@ -256,6 +256,11 @@ struct InsertCommand {
StringRef where;
};
+struct CrossRefList {
+ SmallVector<StringRef, 2> refs;
+ bool firstOnly;
----------------
mysterymath wrote:
Along these lines, instead of using a `firstOnly` boolean to change the interpretation of refs, it would be cleaner to separate out a `toOutputSection` StringRef. This should help remove index juggling in the implementation, but it still needs a version of the above comment to describe how the semantics change when `toOutputSection` is present or absent.
https://github.com/llvm/llvm-project/pull/95714
More information about the llvm-commits
mailing list