forked from OSchip/llvm-project
[InstrProfiling] Use -fuse-ld=lld in instrprof-gc-sections test
This was accidentally omitted in 603d58b
leading to a test failure
on some of the bots that don't use lld as the default linker.
This commit is contained in:
parent
fda5192d4f
commit
69c5ff4668
|
@ -24,9 +24,9 @@
|
|||
// Note: When there is no code in a program, we expect to see the exact same
|
||||
// set of external functions provided by the profile runtime.
|
||||
|
||||
// RUN: %clang_profgen -fcoverage-mapping -ffunction-sections -fdata-sections -Wl,--gc-sections -shared -o %t.nocode.so %s
|
||||
// RUN: %clang_profgen -fuse-ld=lld -fcoverage-mapping -ffunction-sections -fdata-sections -Wl,--gc-sections -shared -o %t.nocode.so %s
|
||||
// RUN: llvm-nm -jgU %t.nocode.so | grep -vE "__start_.*|__stop_.*" > %t.nocode.syms
|
||||
// RUN: llvm-nm -jgU %t | grep -vE "main|foo|_start|__libc_.*" > %t.code.syms
|
||||
// RUN: llvm-nm -jgU %t | grep -vE "main|_start|__libc_.*" > %t.code.syms
|
||||
// RUN: diff %t.nocode.syms %t.code.syms
|
||||
|
||||
// Note: We also check the IR instrumentation and expect foo() to be garbage
|
||||
|
|
Loading…
Reference in New Issue