This is an archive of the discontinued LLVM Phabricator instance.

Add support for handling ifuncs to GlobalValue::getBaseObject
ClosedPublic

Authored by tejohnson on May 15 2017, 9:00 AM.

Details

Summary

All GlobalIndirectSymbol types (not just GlobalAlias) should return
their base object.

Without this patch LTO would warn "Unable to determine comdat of
alias!" for an ifunc.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson created this revision.May 15 2017, 9:00 AM
tejohnson updated this revision to Diff 99029.May 15 2017, 11:10 AM

Update per review

tejohnson retitled this revision from [LTO] Use GlobalValue::getComdat which knows how to handle ifuncs to Add support for handling ifuncs to GlobalValue::getBaseObject.May 15 2017, 11:11 AM
tejohnson edited the summary of this revision. (Show Details)
tejohnson added a reviewer: rafael.
This revision was automatically updated to reflect the committed changes.