summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingInternal.h
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2015-12-22 18:57:15 +0000
committerXinliang David Li <davidxl@google.com>2015-12-22 18:57:15 +0000
commit32f16ac9c2115863331d5615f9472e93cd6d072b (patch)
treefecac55617b1b82aaae6ba3ecacb6fb986170423 /lib/profile/InstrProfilingInternal.h
parentd800108a722bf428fb4a5e493007cb13299d3948 (diff)
[PGO] Move buffer write callback to a common file
This is a NFC refactoring enabling code sharing by file writer. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@256264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingInternal.h')
-rw-r--r--lib/profile/InstrProfilingInternal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/profile/InstrProfilingInternal.h b/lib/profile/InstrProfilingInternal.h
index d247ca437..e1302d3a6 100644
--- a/lib/profile/InstrProfilingInternal.h
+++ b/lib/profile/InstrProfilingInternal.h
@@ -49,6 +49,8 @@ typedef struct ProfDataIOVec {
typedef uint32_t (*WriterCallback)(ProfDataIOVec *, uint32_t NumIOVecs,
void **WriterCtx);
+uint32_t llvmBufferWriter(ProfDataIOVec *IOVecs, uint32_t NumIOVecs,
+ void **WriterCtx);
int llvmWriteProfData(WriterCallback Writer, void *WriterCtx,
const uint8_t *ValueDataBegin,
const uint64_t ValueDataSize);