diff options
| author | Eugene Leviant <eleviant@accesssoftek.com> | 2018-12-03 14:03:51 +0000 |
|---|---|---|
| committer | Eugene Leviant <eleviant@accesssoftek.com> | 2018-12-03 14:03:51 +0000 |
| commit | a50c05872e4e340b7a3f7ba18cf3058739b140a0 (patch) | |
| tree | c21e3e97d01166603cff707793f34df5a1c1d942 /compiler-rt/lib/sanitizer_common/sanitizer_posix.cc | |
| parent | fd7d515891217d0707b70740c2deb1f1592abb10 (diff) | |
| download | bcm5719-llvm-a50c05872e4e340b7a3f7ba18cf3058739b140a0.tar.gz bcm5719-llvm-a50c05872e4e340b7a3f7ba18cf3058739b140a0.zip | |
[SanitizerCommon] Remove RenameFile
This function seems to be no longer used by compiler-rt
libraries
Differential revision: https://reviews.llvm.org/D55123
llvm-svn: 348140
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_posix.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_posix.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc index f7dfc86f58c..116270f8d23 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_posix.cc @@ -193,11 +193,6 @@ bool WriteToFile(fd_t fd, const void *buff, uptr buff_size, uptr *bytes_written, return true; } -bool RenameFile(const char *oldpath, const char *newpath, error_t *error_p) { - uptr res = internal_rename(oldpath, newpath); - return !internal_iserror(res, error_p); -} - void *MapFileToMemory(const char *file_name, uptr *buff_size) { fd_t fd = OpenFile(file_name, RdOnly); CHECK(fd != kInvalidFd); |

