diff options
| author | Xinliang David Li <davidxl@google.com> | 2016-07-19 20:48:00 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2016-07-19 20:48:00 +0000 |
| commit | b6d43b7994f8b5601f7229bbfe077c2b286bdf94 (patch) | |
| tree | 677db44810f019ac33a8b0b44e8ff4ab199f91b2 /compiler-rt/lib/profile/InstrProfilingFile.c | |
| parent | 3b059841ff4b9660b0f1696d1aaf8f194fc42275 (diff) | |
| download | bcm5719-llvm-b6d43b7994f8b5601f7229bbfe077c2b286bdf94.tar.gz bcm5719-llvm-b6d43b7994f8b5601f7229bbfe077c2b286bdf94.zip | |
[Profile] introduce reusable internal interfaces to find dir separator \NFC
llvm-svn: 276027
Diffstat (limited to 'compiler-rt/lib/profile/InstrProfilingFile.c')
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfilingFile.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c index 32762d14eef..6670a236111 100644 --- a/compiler-rt/lib/profile/InstrProfilingFile.c +++ b/compiler-rt/lib/profile/InstrProfilingFile.c @@ -229,11 +229,7 @@ static void truncateCurrentFile(void) { return; /* Create the directory holding the file, if needed. */ - if (strchr(Filename, DIR_SEPARATOR) -#if defined(DIR_SEPARATOR_2) - || strchr(Filename, DIR_SEPARATOR_2) -#endif - ) { + if (lprofFindFirstDirSeparator(Filename)) { char *Copy = (char *)COMPILER_RT_ALLOCA(Length + 1); strncpy(Copy, Filename, Length + 1); __llvm_profile_recursive_mkdir(Copy); |

