diff options
author | Jez Ng <jezng@fb.com> | 2022-03-03 19:04:11 -0500 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2022-03-03 19:04:11 -0500 |
commit | dd29597e103cd13dd308fb68283fce9d3411f723 (patch) | |
tree | db905e6468145487a35f4d8a264ec1c11a679136 /llvm/lib/Support/SourceMgr.cpp | |
parent | 5c268743da5818bc279b27648e9fccc37b9bb7dd (diff) | |
download | llvm-dd29597e103cd13dd308fb68283fce9d3411f723.zip llvm-dd29597e103cd13dd308fb68283fce9d3411f723.tar.gz llvm-dd29597e103cd13dd308fb68283fce9d3411f723.tar.bz2 |
[LTO] Initialize canAutoHide() using canBeOmittedFromSymbolTable()
Per discussion on
https://reviews.llvm.org/D59709#inline-1148734, this seems like the
right course of action. `canBeOmittedFromSymbolTable()` subsumes and
generalizes the previous logic. In addition to handling `linkonce_odr`
`unnamed_addr` globals, we now also internalize `linkonce_odr` +
`local_unnamed_addr` constants.
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D120173
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
0 files changed, 0 insertions, 0 deletions