diff options
author | Xinliang David Li <davidxl@google.com> | 2015-11-18 21:11:46 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-11-18 21:11:46 +0000 |
commit | a8e5026dd9886ee7fbe52ebb8226392de0ac97f2 (patch) | |
tree | b724247290ee24923004e51606c03c89a39ea35a /lib/profile/InstrProfilingFile.c | |
parent | 82f3febc95e44d30cd414577c77c92b60345bb4b (diff) |
Fix format of previous patch (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingFile.c')
-rw-r--r-- | lib/profile/InstrProfilingFile.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/profile/InstrProfilingFile.c b/lib/profile/InstrProfilingFile.c index 1e2d44be0..c226bfa0c 100644 --- a/lib/profile/InstrProfilingFile.c +++ b/lib/profile/InstrProfilingFile.c @@ -8,8 +8,8 @@ \*===----------------------------------------------------------------------===*/ #include "InstrProfiling.h" -#include "InstrProfilingUtil.h" #include "InstrProfilingInternal.h" +#include "InstrProfilingUtil.h" #include <errno.h> #include <stdio.h> #include <stdlib.h> @@ -21,13 +21,14 @@ static size_t FileWriter(const void *Data, size_t ElmSize, size_t NumElm, void **File) { return fwrite(Data, ElmSize, NumElm, (FILE *)*File); } - uint8_t *ValueDataBegin = NULL; +uint8_t *ValueDataBegin = NULL; static int writeFile(FILE *File) { uint8_t *ValueDataBegin = NULL; - const uint64_t ValueDataSize = __llvm_profile_gather_value_data(&ValueDataBegin); + const uint64_t ValueDataSize = + __llvm_profile_gather_value_data(&ValueDataBegin); int r = llvmWriteProfData(File, ValueDataBegin, ValueDataSize, FileWriter); - free (ValueDataBegin); + free(ValueDataBegin); return r; } |