aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
diff options
context:
space:
mode:
authorGulfem Savrun Yeniceri <gulfem@google.com>2022-03-23 16:22:32 +0000
committerGulfem Savrun Yeniceri <gulfem@google.com>2022-03-25 17:03:03 +0000
commitc7f91e227a799dfee05962bb108274dbfe809fee (patch)
treefa457e3850511f43c9f95970068f216298abc6a7 /llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp
parentb867f5c7b827304ddde057bfc0057e17efe4fe91 (diff)
downloadllvm-c7f91e227a799dfee05962bb108274dbfe809fee.zip
llvm-c7f91e227a799dfee05962bb108274dbfe809fee.tar.gz
llvm-c7f91e227a799dfee05962bb108274dbfe809fee.tar.bz2
[InstrProfiling] No runtime hook for unused funcs
CoverageMappingModuleGen generates a coverage mapping record even for unused functions with internal linkage, e.g. static int foo() { return 100; } Clang frontend eliminates such functions, but InstrProfiling pass still pulls in profile runtime since there is a coverage record. Fuchsia uses runtime counter relocation, and pulling in profile runtime for unused functions causes a linker error: undefined hidden symbol: __llvm_profile_counter_bias. Since 389dc94d4be7, we do not hook profile runtime for the binaries that none of its translation units have been instrumented in Fuchsia. This patch extends that for the instrumented binaries that consist of only unused functions. Differential Revision: https://reviews.llvm.org/D122336
Diffstat (limited to 'llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions