diff options
author | Xinliang David Li <davidxl@google.com> | 2015-12-04 06:06:07 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-12-04 06:06:07 +0000 |
commit | da29bc41a6ced5a367b56c112a768f2affaa76ff (patch) | |
tree | ccd32f0d46ede4beeb7897b89203811fca5a20b3 /compiler-rt/test/profile/instrprof-value-prof.c | |
parent | 2d54c842b5d175981e8a7f13e1359768f4b6b4db (diff) | |
download | bcm5719-llvm-da29bc41a6ced5a367b56c112a768f2affaa76ff.tar.gz bcm5719-llvm-da29bc41a6ced5a367b56c112a768f2affaa76ff.zip |
[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.
llvm-svn: 254705
Diffstat (limited to 'compiler-rt/test/profile/instrprof-value-prof.c')
-rw-r--r-- | compiler-rt/test/profile/instrprof-value-prof.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/profile/instrprof-value-prof.c b/compiler-rt/test/profile/instrprof-value-prof.c index b103ff8c4ee..c6627543619 100644 --- a/compiler-rt/test/profile/instrprof-value-prof.c +++ b/compiler-rt/test/profile/instrprof-value-prof.c @@ -51,7 +51,7 @@ void *CallerAddrs[] = {FUNC_128_ADDRS(caller)}; 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; |