diff options
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingValue.c')
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfilingValue.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingValue.c b/compiler-rt/lib/profile/InstrProfilingValue.c index 0ed92452f84..f800453e4fe 100644 --- a/compiler-rt/lib/profile/InstrProfilingValue.c +++ b/compiler-rt/lib/profile/InstrProfilingValue.c @@ -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 = |

