Fix variable visibility

llvm-svn: 268952
This commit is contained in:
Xinliang David Li 2016-05-09 19:01:19 +00:00
parent d99f21b0e6
commit b5a2b3a429
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -114,9 +114,9 @@ int lprofWriteDataImpl(WriterCallback Writer, void *WriterCtx,
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;

View File

@ -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