aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorYuta Saito <kateinoigakukun@gmail.com>2024-10-24 12:52:50 +0900
committerGitHub <noreply@github.com>2024-10-24 12:52:50 +0900
commitbf8f5cc9b50b411ab0d8ee6532c6189992d790db (patch)
tree4aa21b9cf996711d80d594dcd213bfc43e5b823c /clang/lib/CodeGen/CodeGenFunction.cpp
parent786db636b9b6967087685a62af665046621b4957 (diff)
downloadllvm-bf8f5cc9b50b411ab0d8ee6532c6189992d790db.zip
llvm-bf8f5cc9b50b411ab0d8ee6532c6189992d790db.tar.gz
llvm-bf8f5cc9b50b411ab0d8ee6532c6189992d790db.tar.bz2
Reland: [llvm-cov][WebAssembly] Read `__llvm_prf_names` from data segments (#112569)
On WebAssembly, most coverage metadata contents read by llvm-cov (like `__llvm_covmap` and `__llvm_covfun`) are stored in custom sections because they are not referenced at runtime. However, `__llvm_prf_names` is referenced at runtime by the profile runtime library and is read by llvm-cov post-processing tools, so it needs to be stored in a data segment, which is allocatable at runtime and accessible by tools as long as "name" section is present in the binary. This patch changes the way llvm-cov reads `__llvm_prf_names` on WebAssembly. Instead of looking for a section, it looks for a data segment with the same name. This reverts commit 157f10ddf2d851125a85a71e530dc9d50cb032a2 and fixes PE/COFF `.lprfn$A` section handling.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions