For symbols that has linkonce_odr linkage and unnamed_addr, it can be
auto hide by linker to avoid weak external symbols. Teach ThinLTO to
perform auto hide so it can safely promote linkonce_odr to weak symbols
without breaking this nice property.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM although I have a suggestion on where to move the new code.
lib/Transforms/IPO/FunctionImport.cpp | ||
---|---|---|
693 ↗ | (On Diff #133641) | Suggest moving the new check down into this else, which is the only condition under which it could be true, to avoid unnecessary checking. |