[PATCH] D89986: [AIX] do not emit visibility attribute into IR when there is -mignore-xcoff-visibility
Digger via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 26 07:57:22 PDT 2020
DiggerLin marked an inline comment as done.
DiggerLin added inline comments.
================
Comment at: clang/lib/CodeGen/BackendUtil.cpp:520
Options.DataSections = CodeGenOpts.DataSections;
- Options.IgnoreXCOFFVisibility = CodeGenOpts.IgnoreXCOFFVisibility;
Options.UniqueSectionNames = CodeGenOpts.UniqueSectionNames;
----------------
jasonliu wrote:
> Instead of just removing this line, should this get replaced with the new LangOpts option?
I do not think we need a CodeGenOp of ignore-xcoff-visibility in clang, we only need the LangOpt of the ignore-xcoff-visilbity to control whether we will generate the visibility in the IR, when the LangOpt of ignore-xcoff-visibility do not generate the visibility attribute of GV in the IR. it do not need CodeGenOp of ignore-xcoff-visibility any more for the clang .
we have still CodeGen ignore-xcoff-visibility op in llc.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89986/new/
https://reviews.llvm.org/D89986
More information about the cfe-commits
mailing list