Add segment prefix for darwin

llvm-svn: 270875
This commit is contained in:
Xinliang David Li 2016-05-26 17:21:24 +00:00
parent 105518fe3c
commit b033220085
1 changed files with 6 additions and 1 deletions

View File

@ -26,11 +26,16 @@ static int hasNonDefaultValsPerSite = 0;
#define INSTR_PROF_VNODE_POOL_SIZE 1024
#ifndef _MSC_VER
#if defined(__APPLE__)
#define VPSEG "__DATA,"
#else
#define VPSEG ""
#endif
/* A shared static pool in addition to the vnodes statically
* allocated by the compiler. */
COMPILER_RT_VISIBILITY ValueProfNode
lprofValueProfNodes[INSTR_PROF_VNODE_POOL_SIZE] COMPILER_RT_SECTION(
INSTR_PROF_VNODES_SECT_NAME_STR);
VPSEG INSTR_PROF_VNODES_SECT_NAME_STR);
#endif
COMPILER_RT_VISIBILITY uint32_t VPMaxNumValsPerSite =