brintos

brintos / llvm-project-archived public Read only

0
0
Text · 600 B · 5b64a94 Raw
7 lines · plain
1# This tests that lprofMergeValueProfData is not accessed from outside a module2RUN: mkdir -p %t.d3RUN: %clang_profgen -o %t.d/func.shared -fPIC -shared -fuse-ld=gold -mllvm --enable-value-profiling=true %S/../Inputs/instrprof-value-prof-visibility.c -fdata-sections -ffunction-sections -fuse-ld=gold -Wl,--gc-sections4RUN: %clang_profgen -o %t.d/main -fuse-ld=gold -mllvm --enable-value-profiling=true  -DDLOPEN_FUNC_DIR=\"%t.d\" %S/../Inputs/instrprof-value-prof-visibility.c -fdata-sections -ffunction-sections -fuse-ld=gold -Wl,--gc-sections5RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.d/main6 7