summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfiling.h
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-12-09 22:07:25 +0000
committerJustin Bogner <mail@justinbogner.com>2014-12-09 22:07:25 +0000
commit55248db0c98a5af6df9ee4413fd06dac07553a27 (patch)
tree90577547364f18bf42ebe45a9ef81aaab5aeee81 /compiler-rt/lib/profile/InstrProfiling.h
parent7f138811cd27f5835e7781d3f1cf0797b26af9b9 (diff)
downloadbcm5719-llvm-55248db0c98a5af6df9ee4413fd06dac07553a27.tar.gz
bcm5719-llvm-55248db0c98a5af6df9ee4413fd06dac07553a27.zip
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
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfiling.h')
-rw-r--r--compiler-rt/lib/profile/InstrProfiling.h3
1 files changed, 0 insertions, 3 deletions
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.
*
OpenPOWER on IntegriCloud