[lld] [lld-macho] Implement support for ObjC relative method lists (PR #86231)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 16:17:32 PDT 2024
================
@@ -1086,6 +1086,22 @@ static bool shouldEmitChainedFixups(const InputArgList &args) {
return isRequested;
}
+static bool shouldEmitRelativeMethodLists(const InputArgList &args) {
+ const Arg *arg = args.getLastArg(OPT_objc_relative_method_lists,
+ OPT_no_objc_relative_method_lists);
+ if (arg && arg->getOption().getID() == OPT_objc_relative_method_lists)
+ return true;
+ if (arg && arg->getOption().getID() == OPT_no_objc_relative_method_lists)
----------------
alx32 wrote:
Maybe I'm misunderstanding, but doesn't `args.getLastArg` get the last command line arg that matches. If both are passed, then only the last one is considered. Does the order matter here ?
https://github.com/llvm/llvm-project/pull/86231
More information about the llvm-commits
mailing list