[compiler-rt] 69c5ff4 - [InstrProfiling] Use -fuse-ld=lld in instrprof-gc-sections test

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 16:36:29 PDT 2020


Author: Petr Hosek
Date: 2020-06-08T16:36:14-07:00
New Revision: 69c5ff4668cd4d1bfb6b45d71e15c12e3a23ae05

URL: https://github.com/llvm/llvm-project/commit/69c5ff4668cd4d1bfb6b45d71e15c12e3a23ae05
DIFF: https://github.com/llvm/llvm-project/commit/69c5ff4668cd4d1bfb6b45d71e15c12e3a23ae05.diff

LOG: [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.

Added: 
    

Modified: 
    compiler-rt/test/profile/instrprof-gc-sections.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/instrprof-gc-sections.c b/compiler-rt/test/profile/instrprof-gc-sections.c
index a3d0fa466c30..593fb3be1026 100644
--- a/compiler-rt/test/profile/instrprof-gc-sections.c
+++ b/compiler-rt/test/profile/instrprof-gc-sections.c
@@ -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


        


More information about the llvm-commits mailing list