HomePhabricator

Add !associated metadata.

Authored by eugenis on Mar 17 2017, 3:17 PM.

Description

Add !associated metadata.

This is an ELF-specific thing that adds SHF_LINK_ORDER to the global's section
pointing to the metadata argument's section. The effect of that is a reverse dependency
between sections for the linker GC.

!associated does not change the behavior of global-dce. The global
may also need to be added to llvm.compiler.used.

Since SHF_LINK_ORDER is per-section, !associated effectively enables
fdata-sections for the affected globals, the same as comdats do.

Differential Revision: https://reviews.llvm.org/D29104

llvm-svn: 298157

Details

Committed
eugenisMar 17 2017, 3:17 PM
Differential Revision
D29104: Add !associated metadata.
Parents
rG46ddab38102b: [SelectionDAG] Remove redundant stores more aggressively.
Branches
Unknown
Tags
Unknown