diff options
author | Xinliang David Li <davidxl@google.com> | 2015-11-19 07:21:47 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-11-19 07:21:47 +0000 |
commit | 95b5a3dd9245297127aa880884ecc3079eaad01f (patch) | |
tree | 2179c513fe76e8e965c49a8358e6ffcca1f43fae /lib/profile/InstrProfilingInternal.h | |
parent | e45ef874f0498076cc9aacfabed010367c5bd136 (diff) | |
download | compiler-rt-95b5a3dd9245297127aa880884ecc3079eaad01f.tar.gz |
[PGO] Minor cleanups (from review feedback)
1. fix naming problem of file/buffer writer
2. change BufferOrFile to WriterCtx
3. move writer and writerctx together
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingInternal.h')
-rw-r--r-- | lib/profile/InstrProfilingInternal.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/profile/InstrProfilingInternal.h b/lib/profile/InstrProfilingInternal.h index c72ca106e..518e6a320 100644 --- a/lib/profile/InstrProfilingInternal.h +++ b/lib/profile/InstrProfilingInternal.h @@ -43,9 +43,10 @@ int __llvm_profile_write_buffer_internal( */ typedef size_t (*WriterCallback)(const void *Data, size_t ElmS, size_t NumElm, void **BufferOrFile); -int llvmWriteProfData(void *BufferOrFile, const uint8_t *ValueDataBegin, - const uint64_t ValueDataSize, WriterCallback Writer); -int llvmWriteProfDataImpl(void *BufferOrFile, WriterCallback Writer, +int llvmWriteProfData(void *WriterCtx, WriterCallback Writer, + const uint8_t *ValueDataBegin, + const uint64_t ValueDataSize); +int llvmWriteProfDataImpl(void *WriterCtx, WriterCallback Writer, const __llvm_profile_data *DataBegin, const __llvm_profile_data *DataEnd, const uint64_t *CountersBegin, |