Lines Matching refs:FilenameBuf
116 static const char *getCurFilename(char *FilenameBuf, int ForceUseBuf);
386 char *FilenameBuf; in truncateCurrentFile() local
391 FilenameBuf = (char *)COMPILER_RT_ALLOCA(Length + 1); in truncateCurrentFile()
392 Filename = getCurFilename(FilenameBuf, 0); in truncateCurrentFile()
492 char *FilenameBuf = (char *)COMPILER_RT_ALLOCA(Length + 1); in relocateCounters() local
493 const char *Filename = getCurFilename(FilenameBuf, 0); in relocateCounters()
576 char *FilenameBuf = (char *)COMPILER_RT_ALLOCA(Length + 1); in initializeProfileForContinuousMode() local
577 const char *Filename = getCurFilename(FilenameBuf, 0); in initializeProfileForContinuousMode()
855 static const char *getCurFilename(char *FilenameBuf, int ForceUseBuf) { in getCurFilename() argument
869 memcpy(FilenameBuf, lprofCurFilename.FilenamePat, FilenamePatLength); in getCurFilename()
870 FilenameBuf[FilenamePatLength] = '\0'; in getCurFilename()
871 return FilenameBuf; in getCurFilename()
881 memcpy(FilenameBuf + J, lprofCurFilename.PidChars, PidLength); in getCurFilename()
884 memcpy(FilenameBuf + J, lprofCurFilename.Hostname, HostNameLength); in getCurFilename()
887 memcpy(FilenameBuf + J, lprofCurFilename.TmpDir, TmpDirLength); in getCurFilename()
888 FilenameBuf[J + TmpDirLength] = DIR_SEPARATOR; in getCurFilename()
900 memcpy(FilenameBuf + J, LoadModuleSignature, S); in getCurFilename()
905 FilenameBuf[J++] = FilenamePat[I]; in getCurFilename()
906 FilenameBuf[J] = 0; in getCurFilename()
908 return FilenameBuf; in getCurFilename()
923 char *FilenameBuf, *Prefix; in __llvm_profile_get_path_prefix() local
930 FilenameBuf = (char *)COMPILER_RT_ALLOCA(Length + 1); in __llvm_profile_get_path_prefix()
931 Filename = getCurFilename(FilenameBuf, 0); in __llvm_profile_get_path_prefix()
954 char *FilenameBuf; in __llvm_profile_get_filename() local
958 FilenameBuf = (char *)malloc(Length + 1); in __llvm_profile_get_filename()
959 if (!FilenameBuf) { in __llvm_profile_get_filename()
963 Filename = getCurFilename(FilenameBuf, 1); in __llvm_profile_get_filename()
967 return FilenameBuf; in __llvm_profile_get_filename()
1030 char *FilenameBuf; in __llvm_profile_write_file() local
1039 FilenameBuf = (char *)COMPILER_RT_ALLOCA(Length + 1); in __llvm_profile_write_file()
1040 Filename = getCurFilename(FilenameBuf, 0); in __llvm_profile_write_file()
1091 char *FilenameBuf; in __llvm_orderfile_write_file() local
1096 FilenameBuf = (char *)COMPILER_RT_ALLOCA(Length + 1); in __llvm_orderfile_write_file()
1097 Filename = getCurFilename(FilenameBuf, 1); in __llvm_orderfile_write_file()
1107 memcpy(FilenameBuf + LengthBeforeAppend, OrderFileSuffix, SuffixLength); in __llvm_orderfile_write_file()
1108 FilenameBuf[LengthBeforeAppend + SuffixLength] = '\0'; in __llvm_orderfile_write_file()