[lld] [AArch64][GCS][LLD] Introduce -zgcs-report-dynamic Command Line Option (PR #127787)
Jack Styles via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 28 00:49:23 PST 2025
================
@@ -569,6 +576,58 @@ static GcsPolicy getZGcs(Ctx &ctx, opt::InputArgList &args) {
return ret;
}
+static GcsReportPolicy getZGcsReport(Ctx &ctx, opt::InputArgList &args) {
+ GcsReportPolicy ret = GcsReportPolicy::None;
+
+ for (auto *arg : args.filtered(OPT_z)) {
+ std::pair<StringRef, StringRef> kv = StringRef(arg->getValue()).split('=');
+ if (kv.first == "gcs-report") {
+ arg->claim();
+ if (kv.second == "none")
----------------
Stylie777 wrote:
I have switched to a StringSwitch.
https://github.com/llvm/llvm-project/pull/127787
More information about the llvm-commits
mailing list