[PATCH] D152021: [clang][AIX] Fix Overly Strick LTO Option Checking against `data-sections` when `mxcoff-roptr` is in Effect
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 6 07:44:22 PDT 2023
MaskRay added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/CommonArgs.cpp:749
if (HasRoptr) {
if (!Args.hasFlag(options::OPT_fdata_sections,
+ options::OPT_fno_data_sections, UseSeparateSections) &&
----------------
Consider the `hasFlagNoClaim` variant. `OPT_fdata_sections` is mainly claimed elsewhere.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152021/new/
https://reviews.llvm.org/D152021
More information about the cfe-commits
mailing list