summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingFile.c
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-05-14 20:12:42 +0000
committerXinliang David Li <davidxl@google.com>2016-05-14 20:12:42 +0000
commit31e6b45c64181fbd3928856bb4a5f0081390ea3e (patch)
tree69005109496fd58761f67719aba120ec074960ae /lib/profile/InstrProfilingFile.c
parent6948b5e68fe7b8361951ad9a0b8a01f0b4847537 (diff)
[profile] Eliminate dynamic memory allocation for vp writing
This is part-3 of the effort to eliminate dependency on libc allocator in instr profiler runtime. With this change, the profile dumper is completely free of malloc/calloc. Value profile instr API implementation is the only remaining piece with calloc dependency. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@269576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingFile.c')
-rw-r--r--lib/profile/InstrProfilingFile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/profile/InstrProfilingFile.c b/lib/profile/InstrProfilingFile.c
index e2f68002e..1e754017c 100644
--- a/lib/profile/InstrProfilingFile.c
+++ b/lib/profile/InstrProfilingFile.c
@@ -50,7 +50,7 @@ static void setupIOBuffer() {
static int writeFile(FILE *File) {
FreeHook = &free;
setupIOBuffer();
- return lprofWriteData(fileWriter, File, lprofGatherValueProfData);
+ return lprofWriteData(fileWriter, File, lprofGetVPDataReader());
}
static int writeFileWithName(const char *OutputName) {