diff options
author | Petr Hosek <phosek@google.com> | 2019-07-13 14:02:07 -0700 |
---|---|---|
committer | Petr Hosek <phosek@google.com> | 2021-02-21 16:13:06 -0800 |
commit | 5ca21175e09fc7fb7dcaee9ebd6782d122a5688f (patch) | |
tree | 00426a06bb235e7ce746cc725c7c8cfbf8cb1a9a /llvm/lib/CodeGen/SplitKit.cpp | |
parent | 183bbad1d78a4bf445ec4db1ce01673f6a7feb37 (diff) | |
download | llvm-5ca21175e09fc7fb7dcaee9ebd6782d122a5688f.zip llvm-5ca21175e09fc7fb7dcaee9ebd6782d122a5688f.tar.gz llvm-5ca21175e09fc7fb7dcaee9ebd6782d122a5688f.tar.bz2 |
[InstrProfiling] Use ELF section groups for counters, data and values
__start_/__stop_ references retain C identifier name sections such as
__llvm_prf_*. Putting these into a section group disables this logic.
The ELF section group semantics ensures that group members are retained
or discarded as a unit. When a function symbol is discarded, this allows
allows linker to discard counters, data and values associated with that
function symbol as well.
Note that `noduplicates` COMDAT is lowered to zero-flag section group in
ELF. We only set this for functions that aren't already in a COMDAT and
for those that don't have available_externally linkage since we already
use regular COMDAT groups for those.
Differential Revision: https://reviews.llvm.org/D96757
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
0 files changed, 0 insertions, 0 deletions