diff options
author | Xinliang David Li <davidxl@google.com> | 2016-05-10 00:17:31 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-05-10 00:17:31 +0000 |
commit | f938294524df0b8a39a220e7e77ace25edbb9bb8 (patch) | |
tree | 1d67ced94cb76b602e4ace648daa9784ae86a30e /lib/profile/InstrProfilingFile.c | |
parent | 4ce1f1ecd21731f9de9de7d1a7a21d07d14110f9 (diff) |
Reapply r268840: [profile] Simplify value profile writing
Revert r268864 that reverted 268840 after underlying problem
is fixed for arm bot.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@268992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingFile.c')
-rw-r--r-- | lib/profile/InstrProfilingFile.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/profile/InstrProfilingFile.c b/lib/profile/InstrProfilingFile.c index 9d63269eb..14f7517b6 100644 --- a/lib/profile/InstrProfilingFile.c +++ b/lib/profile/InstrProfilingFile.c @@ -39,15 +39,12 @@ lprofCreateBufferIOInternal(void *File, uint32_t BufferSz) { static int writeFile(FILE *File) { const char *BufferSzStr = 0; - uint64_t ValueDataSize = 0; - struct ValueProfData **ValueDataArray = - __llvm_profile_gather_value_data(&ValueDataSize); FreeHook = &free; CallocHook = &calloc; BufferSzStr = getenv("LLVM_VP_BUFFER_SIZE"); if (BufferSzStr && BufferSzStr[0]) VPBufferSize = atoi(BufferSzStr); - return lprofWriteData(fileWriter, File, ValueDataArray, ValueDataSize); + return lprofWriteData(fileWriter, File, lprofGatherValueProfData); } static int writeFileWithName(const char *OutputName) { |