summaryrefslogtreecommitdiff
path: root/test/profile/instrprof-value-prof.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-12-04 06:06:07 +0000
committerXinliang David Li <davidxl@google.com>2015-12-04 06:06:07 +0000
commit101bef30d561e94452eb521465d07a726876cdd5 (patch)
tree99b99c3bb6913fb79c03786ae58a6e260ad24bfe /test/profile/instrprof-value-prof.c
parentb1bbcff9b249907148d7ae52c263d00a5a3575a2 (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@254705 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/profile/instrprof-value-prof.c')
-rw-r--r--test/profile/instrprof-value-prof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/profile/instrprof-value-prof.c b/test/profile/instrprof-value-prof.c
index b103ff8c4..c66275436 100644
--- a/test/profile/instrprof-value-prof.c
+++ b/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;