This is an archive of the discontinued LLVM Phabricator instance.

Target: Change various section classifiers in TargetObjectFile to take a GlobalObject.
ClosedPublic

Authored by pcc on Oct 24 2016, 12:08 PM.

Details

Summary

These functions are about classifying a global which will actually be
emitted, so it does not make sense for them to take a GlobalValue which may
for example be an alias.

Change the Mach-O object writer and the Hexagon, Lanai and MIPS backends
to look through aliases before using TargetObjectFile interfaces. These are
functional changes but all appear to be bug fixes.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 75622.Oct 24 2016, 12:08 PM
pcc retitled this revision from to Target: Change various section classifiers in TargetObjectFile to take a GlobalObject..
pcc updated this object.
pcc added a reviewer: echristo.
pcc added a subscriber: llvm-commits.
echristo accepted this revision.Oct 24 2016, 12:20 PM
echristo edited edge metadata.

LGTM.

Thanks!

This revision is now accepted and ready to land.Oct 24 2016, 12:20 PM
This revision was automatically updated to reflect the committed changes.