[PATCH] D135340: [PGO] Make emitted symbols hidden
Zequan Wu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 14 15:17:11 PDT 2022
zequanwu added a comment.
This causing instrprof-darwin-dead-strip.c failed on mac.
FAIL: Profile-x86_64 :: instrprof-darwin-dead-strip.c (1 of 238)
******************** TEST 'Profile-x86_64 :: instrprof-darwin-dead-strip.c' FAILED ********************
Script:
--
: 'RUN: at line 4'; /Users/zequanwu/llvm-project/build/cmake/./bin/clang -arch x86_64 -stdlib=libc++ -mmacosx-version-min=10.10 -isysroot /Users/zequanwu/llvm-project/build/cmake/../../sysroot/MacOSX.sdk -fprofile-instr-generate=/Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.profraw -fcoverage-mapping -mllvm -enable-name-compression=false -DCODE=1 -Wl,-dead_strip -o /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c
: 'RUN: at line 5'; /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp
: 'RUN: at line 6'; llvm-profdata merge -o /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.profdata /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.profraw
: 'RUN: at line 7'; llvm-profdata show --all-functions /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.profdata | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=PROF
: 'RUN: at line 8'; llvm-cov show /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp -instr-profile /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.profdata | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=COV
: 'RUN: at line 9'; nm /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=NM
: 'RUN: at line 10'; otool -V -s __DATA __llvm_prf_names /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=PRF_NAMES
: 'RUN: at line 11'; otool -V -s __DATA __llvm_prf_cnts /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=PRF_CNTS
: 'RUN: at line 13'; /Users/zequanwu/llvm-project/build/cmake/./bin/clang -Wl,-lto_library,/Users/zequanwu/llvm-project/build/cmake/./lib/libLTO.dylib -flto -arch x86_64 -stdlib=libc++ -mmacosx-version-min=10.10 -isysroot /Users/zequanwu/llvm-project/build/cmake/../../sysroot/MacOSX.sdk -fprofile-instr-generate=/Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto.profraw -fcoverage-mapping -mllvm -enable-name-compression=false -DCODE=1 -Wl,-dead_strip -flto -o /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c
: 'RUN: at line 14'; /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto
: 'RUN: at line 15'; llvm-profdata merge -o /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto.profdata /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto.profraw
: 'RUN: at line 16'; llvm-profdata show --all-functions /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto.profdata | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=PROF
: 'RUN: at line 17'; llvm-cov show /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto -instr-profile /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto.profdata | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=COV
: 'RUN: at line 18'; nm /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=NM
: 'RUN: at line 19'; otool -V -s __DATA __llvm_prf_names /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=PRF_NAMES
: 'RUN: at line 20'; otool -V -s __DATA __llvm_prf_cnts /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.lto | FileCheck /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c -check-prefix=PRF_CNTS
: 'RUN: at line 28'; /Users/zequanwu/llvm-project/build/cmake/./bin/clang -arch x86_64 -stdlib=libc++ -mmacosx-version-min=10.10 -isysroot /Users/zequanwu/llvm-project/build/cmake/../../sysroot/MacOSX.sdk -fprofile-instr-generate -fcoverage-mapping -Wl,-dead_strip -dynamiclib -o /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.nocode.dylib /Users/zequanwu/llvm-project/compiler-rt/test/profile/instrprof-darwin-dead-strip.c
: 'RUN: at line 29'; nm -jgU /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.nocode.dylib > /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.nocode.syms
: 'RUN: at line 30'; nm -jgU /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp | grep -vE "main|foo|mh_execute_header" > /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.code.syms
: 'RUN: at line 31'; diff /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.nocode.syms /Users/zequanwu/llvm-project/build/cmake/projects/compiler-rt/test/profile/Profile-x86_64/Output/instrprof-darwin-dead-strip.c.tmp.code.syms
--
Exit Code: 1
Command Output (stdout):
--
1d0
< ___llvm_profile_filename
--
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135340/new/
https://reviews.llvm.org/D135340
More information about the llvm-commits
mailing list