[compiler-rt] r254705 - [PGO] Fix build failure with -fprofile-instr-generate
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 3 22:06:08 PST 2015
Author: davidxl
Date: Fri Dec 4 00:06:07 2015
New Revision: 254705
URL: http://llvm.org/viewvc/llvm-project?rev=254705&view=rev
Log:
[PGO] Fix build failure with -fprofile-instr-generate
and -no-integrated-as for source with static function.
The compiler generates assembly names containing \" in the
.s dump causing gnu assembler to complain. That issue will be
investigated separately.
Modified:
compiler-rt/trunk/test/profile/instrprof-value-prof.c
Modified: compiler-rt/trunk/test/profile/instrprof-value-prof.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-value-prof.c?rev=254705&r1=254704&r2=254705&view=diff
==============================================================================
--- compiler-rt/trunk/test/profile/instrprof-value-prof.c (original)
+++ compiler-rt/trunk/test/profile/instrprof-value-prof.c Fri Dec 4 00:06:07 2015
@@ -51,7 +51,7 @@ void *CallerAddrs[] = {FUNC_128_ADDRS(ca
void *CalleeAddrs[] = {FUNC_8_ADDRS(callee)};
-static int cmpaddr(const void *p1, const void *p2) {
+int cmpaddr(const void *p1, const void *p2) {
void *addr1 = *(void **)p1;
void *addr2 = *(void **)p2;
return (intptr_t)addr2 - (intptr_t)addr1;
More information about the llvm-commits
mailing list