This is an archive of the discontinued LLVM Phabricator instance.

[cfi] Support explicit sections for functions in cfi-icall.
ClosedPublic

Authored by eugenis on Apr 14 2016, 4:11 PM.

Details

Reviewers
pcc
Summary

Allow explicit section for indirectly called functions in cfi-icall.
Jumptables for functions in the same type class must be contiguous, so they
always go to the default text section.

Fixes PR25079.

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis updated this revision to Diff 53801.Apr 14 2016, 4:11 PM
eugenis retitled this revision from to [cfi] Support explicit sections for functions in cfi-icall..
eugenis updated this object.
eugenis added a reviewer: pcc.
eugenis set the repository for this revision to rL LLVM.
eugenis added a subscriber: llvm-commits.
pcc edited edge metadata.Apr 14 2016, 7:31 PM

Please add "Fixes PR25079." to commit message.

lib/Transforms/IPO/LowerBitSets.cpp
642

Instead of removing this check, please change it to allow functions but not global variables.

eugenis updated this revision to Diff 53953.Apr 15 2016, 2:52 PM
eugenis updated this object.
eugenis edited edge metadata.
eugenis added inline comments.
lib/Transforms/IPO/LowerBitSets.cpp
642

Good point, done.

pcc accepted this revision.Apr 15 2016, 3:41 PM
pcc edited edge metadata.

LGTM

This revision is now accepted and ready to land.Apr 15 2016, 3:41 PM
eugenis closed this revision.Apr 15 2016, 4:05 PM

Thanks!
r266486