summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/profile/InstrProfiling.c
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-20 20:00:44 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-20 20:00:44 +0000
commit9edbae0f161832f34e079cb3faab451adec2a35e (patch)
tree1682e7eb958dd88d8ecf09e6c5b110f5abe003da /compiler-rt/lib/profile/InstrProfiling.c
parenta7807637bf967af9df6fec3c1778ccd0aa74817b (diff)
downloadbcm5719-llvm-9edbae0f161832f34e079cb3faab451adec2a35e.tar.gz
bcm5719-llvm-9edbae0f161832f34e079cb3faab451adec2a35e.zip
PGO: Change runtime prefix from pgo to profile
These functions are in the profile runtime. PGO comes later. Unfortunately, there's only room for 16 characters in a Darwin section, so use __llvm_prf_ instead of __llvm_profile_ for section names. <rdar://problem/15943240> llvm-svn: 204391
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfiling.c')
-rw-r--r--compiler-rt/lib/profile/InstrProfiling.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.c b/compiler-rt/lib/profile/InstrProfiling.c
index 936b8def38c..45c824c842e 100644
--- a/compiler-rt/lib/profile/InstrProfiling.c
+++ b/compiler-rt/lib/profile/InstrProfiling.c
@@ -10,9 +10,9 @@
#include "InstrProfiling.h"
#include <string.h>
-/* TODO: void __llvm_pgo_get_size_for_buffer(void); */
+/* TODO: void __llvm_profile_get_size_for_buffer(void); */
-static void writeFunction(FILE *OutputFile, const __llvm_pgo_data *Data) {
+static void writeFunction(FILE *OutputFile, const __llvm_profile_data *Data) {
/* TODO: Requires libc: break requirement by writing directly to a buffer
* instead of a FILE stream.
*/
@@ -25,20 +25,20 @@ static void writeFunction(FILE *OutputFile, const __llvm_pgo_data *Data) {
fprintf(OutputFile, "\n");
}
-void __llvm_pgo_write_buffer(FILE *OutputFile) {
+void __llvm_profile_write_buffer(FILE *OutputFile) {
/* TODO: Requires libc: break requirement by taking a char* buffer instead of
* a FILE stream.
*/
- const __llvm_pgo_data *I, *E;
+ const __llvm_profile_data *I, *E;
- for (I = __llvm_pgo_data_begin(), E = __llvm_pgo_data_end();
+ for (I = __llvm_profile_data_begin(), E = __llvm_profile_data_end();
I != E; ++I)
writeFunction(OutputFile, I);
}
-void __llvm_pgo_reset_counters(void) {
- uint64_t *I = __llvm_pgo_counters_begin();
- uint64_t *E = __llvm_pgo_counters_end();
+void __llvm_profile_reset_counters(void) {
+ uint64_t *I = __llvm_profile_counters_begin();
+ uint64_t *E = __llvm_profile_counters_end();
memset(I, 0, sizeof(uint64_t)*(E - I));
}
OpenPOWER on IntegriCloud