From 55248db0c98a5af6df9ee4413fd06dac07553a27 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Tue, 9 Dec 2014 22:07:25 +0000 Subject: profile: Add low level versions of profile buffer functions On Darwin, compiler_rt uses magic linker symbols to find the profile counters in the __DATA segment. This is a reasonable method for normal, hosted, userspace programs. However programs with custom memory layouts, such as the kernel, will need to tell compiler_rt explicitly where to find these sections. Patch by Lawrence D'Anna. Thanks! llvm-svn: 223840 --- compiler-rt/lib/profile/InstrProfiling.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'compiler-rt/lib/profile/InstrProfiling.h') diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h index a086f3d4496..2b1bd003668 100644 --- a/compiler-rt/lib/profile/InstrProfiling.h +++ b/compiler-rt/lib/profile/InstrProfiling.h @@ -57,9 +57,6 @@ const char *__llvm_profile_end_names(void); uint64_t *__llvm_profile_begin_counters(void); uint64_t *__llvm_profile_end_counters(void); -#define PROFILE_RANGE_SIZE(Range) \ - (__llvm_profile_end_ ## Range () - __llvm_profile_begin_ ## Range ()) - /*! * \brief Write instrumentation data to the current file. * -- cgit v1.2.3