diff options
| author | Kostya Serebryany <kcc@google.com> | 2019-04-13 00:20:31 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2019-04-13 00:20:31 +0000 |
| commit | 4614cc3dfd2b735ff9292c7867910219d509d970 (patch) | |
| tree | ec1dd2dfabaffe1572234687a75d10ea61a65b85 /compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp | |
| parent | c77bf89dcce8dce0ec3849220a92e10d0bc1b348 (diff) | |
| download | bcm5719-llvm-4614cc3dfd2b735ff9292c7867910219d509d970.tar.gz bcm5719-llvm-4614cc3dfd2b735ff9292c7867910219d509d970.zip | |
[libFuzzer] add -features_dir= flag to dump unique input features on disk
llvm-svn: 358317
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp')
| -rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp index b8c200b810a..510afebef73 100644 --- a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp @@ -219,6 +219,10 @@ void RemoveFile(const std::string &Path) { _unlink(Path.c_str()); } +void RenameFile(const std::string &OldPath, const std::string &NewPath) { + rename(OldPath.c_str(), NewPath.c_str()); +} + void DiscardOutput(int Fd) { FILE* Temp = fopen("nul", "w"); if (!Temp) |

