[PATCH] D79314: PR45733 : global weak symbol are excluded from the optimization .
Umesh Kalappa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 05:21:00 PDT 2020
umesh.kalappa0 added a comment.
In D79314#2018159 <https://reviews.llvm.org/D79314#2018159>, @efriedma wrote:
> Please take some time to read the LangRef documentation and doxygen describing the meaning of the various linkage types and hasDefinitiveInitializer/hasUniqueInitializer
Thank you for suggestion and went trough the Langref and http://legup.eecg.utoronto.ca/doxygen-4.0/GlobalVariable_8h_source.html#l00096 .
,So then why hasDefinitiveInitializer is returning true for below case ? where we expected the mayBeOverridden() returns true or I'm missing something here ?
#pragma weak x
const int x = 5;
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79314/new/
https://reviews.llvm.org/D79314
More information about the llvm-commits
mailing list