diff options
| author | Xinliang David Li <davidxl@google.com> | 2016-05-26 17:21:24 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2016-05-26 17:21:24 +0000 |
| commit | b03322008503c2138cf5b2005986d17e3cf749a0 (patch) | |
| tree | d4a2484aac0138486e3534365cc937cafca4c4ab | |
| parent | 105518fe3cf2adedee729d6d8263e903a04c2fbf (diff) | |
| download | bcm5719-llvm-b03322008503c2138cf5b2005986d17e3cf749a0.tar.gz bcm5719-llvm-b03322008503c2138cf5b2005986d17e3cf749a0.zip | |
Add segment prefix for darwin
llvm-svn: 270875
| -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 = |

