[lld] [lld-macho] Implement support for ObjC relative method lists (PR #86231)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 25 10:13:56 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)
----------------
kyulee-com wrote:
Can we switch the order of `OPT_no_objc_relative_method_lists` and `OPT_objc_relative_method_lists` so that we can disable the feature for the safety when both are passed?
https://github.com/llvm/llvm-project/pull/86231
More information about the llvm-commits
mailing list