diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2017-03-15 04:18:16 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-03-15 04:18:16 +0000 |
| commit | 7f6e2c97b8892a3864ab21701323b8d8f4263a30 (patch) | |
| tree | 51cbad52f3a5e1ef514e5d8348ca6ed5a36c9155 /llvm/lib/CodeGen/BranchFolding.h | |
| parent | 3b4e29ba68fc180350340c438e93456e58a25e72 (diff) | |
| download | bcm5719-llvm-7f6e2c97b8892a3864ab21701323b8d8f4263a30.tar.gz bcm5719-llvm-7f6e2c97b8892a3864ab21701323b8d8f4263a30.zip | |
Ensure that prefix data is preserved with subsections-via-symbols
On MachO platforms that use subsections-via-symbols dead code stripping will
drop prefix data. Unfortunately there is no great way to convey the relationship
between a function and its prefix data to the linker. We are forced to use a bit
of a hack: we give the prefix data it’s own symbol, and mark the actual function
entry an .alt_entry.
Patch by Moritz Angermann!
Differential Revision: https://reviews.llvm.org/D30770
llvm-svn: 297804
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.h')
0 files changed, 0 insertions, 0 deletions

