diff options
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingFile.c')
-rw-r--r-- | compiler-rt/lib/profile/InstrProfilingFile.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c index ad8c3a08a9f..327f4a2bc6f 100644 --- a/compiler-rt/lib/profile/InstrProfilingFile.c +++ b/compiler-rt/lib/profile/InstrProfilingFile.c @@ -21,12 +21,12 @@ #define UNCONST(ptr) ((void *)(uintptr_t)(ptr)) #ifdef COMPILER_RT_HAS_UNAME -int GetHostName(char *Name, int Len) { - struct utsname N; - int R; - if (!(R = uname(&N))) - strncpy(Name, N.nodename, Len); - return R; +int lprofGetHostName(char *Name, int Len) { + struct utsname N; + int R; + if (!(R = uname(&N))) + strncpy(Name, N.nodename, Len); + return R; } #endif @@ -44,10 +44,10 @@ static uint32_t fileWriter(ProfDataIOVec *IOVecs, uint32_t NumIOVecs, } COMPILER_RT_VISIBILITY ProfBufferIO * -llvmCreateBufferIOInternal(void *File, uint32_t BufferSz) { +lprofCreateBufferIOInternal(void *File, uint32_t BufferSz) { CallocHook = calloc; FreeHook = free; - return llvmCreateBufferIO(fileWriter, File, BufferSz); + return lprofCreateBufferIO(fileWriter, File, BufferSz); } static int writeFile(FILE *File) { @@ -60,7 +60,7 @@ static int writeFile(FILE *File) { BufferSzStr = getenv("LLVM_VP_BUFFER_SIZE"); if (BufferSzStr && BufferSzStr[0]) VPBufferSize = atoi(BufferSzStr); - return llvmWriteProfData(fileWriter, File, ValueDataArray, ValueDataSize); + return lprofWriteData(fileWriter, File, ValueDataArray, ValueDataSize); } static int writeFileWithName(const char *OutputName) { |