diff --git a/compiler-rt/lib/profile/InstrProfilingBuffer.c b/compiler-rt/lib/profile/InstrProfilingBuffer.c --- a/compiler-rt/lib/profile/InstrProfilingBuffer.c +++ b/compiler-rt/lib/profile/InstrProfilingBuffer.c @@ -126,13 +126,3 @@ initBufferWriter(&BufferWriter, Buffer); return lprofWriteData(&BufferWriter, 0, 0); } - -COMPILER_RT_VISIBILITY int __llvm_profile_write_buffer_internal( - char *Buffer, const __llvm_profile_data *DataBegin, - const __llvm_profile_data *DataEnd, const uint64_t *CountersBegin, - const uint64_t *CountersEnd, const char *NamesBegin, const char *NamesEnd) { - ProfDataWriter BufferWriter; - initBufferWriter(&BufferWriter, Buffer); - return lprofWriteDataImpl(&BufferWriter, DataBegin, DataEnd, CountersBegin, - CountersEnd, 0, NamesBegin, NamesEnd, 0); -} diff --git a/compiler-rt/lib/profile/InstrProfilingInternal.h b/compiler-rt/lib/profile/InstrProfilingInternal.h --- a/compiler-rt/lib/profile/InstrProfilingInternal.h +++ b/compiler-rt/lib/profile/InstrProfilingInternal.h @@ -24,20 +24,6 @@ const uint64_t *CountersBegin, const uint64_t *CountersEnd, const char *NamesBegin, const char *NamesEnd); -/*! - * \brief Write instrumentation data to the given buffer, given explicit - * pointers to the live data in memory. This function is probably not what you - * want. Use __llvm_profile_write_buffer instead. Use this function if your - * program has a custom memory layout. - * - * \pre \c Buffer is the start of a buffer at least as big as \a - * __llvm_profile_get_size_for_buffer_internal(). - */ -int __llvm_profile_write_buffer_internal( - char *Buffer, const __llvm_profile_data *DataBegin, - const __llvm_profile_data *DataEnd, const uint64_t *CountersBegin, - const uint64_t *CountersEnd, const char *NamesBegin, const char *NamesEnd); - /*! * The data structure describing the data to be written by the * low level writer callback function.