[compiler-rt] r268952 - Fix variable visibility
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Mon May 9 12:01:19 PDT 2016
Author: davidxl
Date: Mon May 9 14:01:19 2016
New Revision: 268952
URL: http://llvm.org/viewvc/llvm-project?rev=268952&view=rev
Log:
Fix variable visibility
Modified:
compiler-rt/trunk/lib/profile/InstrProfiling.c
compiler-rt/trunk/lib/profile/InstrProfilingInternal.h
compiler-rt/trunk/lib/profile/InstrProfilingWriter.c
Modified: compiler-rt/trunk/lib/profile/InstrProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.c?rev=268952&r1=268951&r2=268952&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.c Mon May 9 14:01:19 2016
@@ -16,7 +16,7 @@
#define INSTR_PROF_VALUE_PROF_DATA
#include "InstrProfData.inc"
-char *(*GetEnvHook)(const char *) = 0;
+COMPILER_RT_VISIBILITY char *(*GetEnvHook)(const char *) = 0;
COMPILER_RT_WEAK uint64_t __llvm_profile_raw_version = INSTR_PROF_RAW_VERSION;
Modified: compiler-rt/trunk/lib/profile/InstrProfilingInternal.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingInternal.h?rev=268952&r1=268951&r2=268952&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingInternal.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingInternal.h Mon May 9 14:01:19 2016
@@ -114,9 +114,9 @@ int lprofWriteDataImpl(WriterCallback Wr
void lprofMergeValueProfData(struct ValueProfData *SrcValueProfData,
__llvm_profile_data *DstData);
-extern char *(*GetEnvHook)(const char *);
-extern void (*FreeHook)(void *);
-extern void *(*CallocHook)(size_t, size_t);
+COMPILER_RT_VISIBILITY extern char *(*GetEnvHook)(const char *);
+COMPILER_RT_VISIBILITY extern void (*FreeHook)(void *);
+COMPILER_RT_VISIBILITY extern void *(*CallocHook)(size_t, size_t);
extern void (*VPMergeHook)(struct ValueProfData *, __llvm_profile_data *);
extern uint32_t VPBufferSize;
Modified: compiler-rt/trunk/lib/profile/InstrProfilingWriter.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingWriter.c?rev=268952&r1=268951&r2=268952&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfilingWriter.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfilingWriter.c Mon May 9 14:01:19 2016
@@ -13,8 +13,8 @@
#define INSTR_PROF_VALUE_PROF_DATA
#include "InstrProfData.inc"
-void (*FreeHook)(void *) = NULL;
-void* (*CallocHook)(size_t, size_t) = NULL;
+COMPILER_RT_VISIBILITY void (*FreeHook)(void *) = NULL;
+COMPILER_RT_VISIBILITY void *(*CallocHook)(size_t, size_t) = NULL;
uint32_t VPBufferSize = 0;
/* The buffer writer is reponsponsible in keeping writer state
More information about the llvm-commits
mailing list