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 | c438ef37dfc4b954ead9df6222fe0bb36987268e (patch) | |
| tree | d87619a6ebc6ebe668b6f2757ca4be8a8f97ff32 /lib/fuzzer/FuzzerIOWindows.cpp | |
| parent | 8fa46946cfbe3eb0e23dde603799e9af586fe374 (diff) | |
| download | compiler-rt-c438ef37dfc4b954ead9df6222fe0bb36987268e.tar.gz | |
[libFuzzer] add -features_dir= flag to dump unique input features on disk
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@358317 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerIOWindows.cpp')
| -rw-r--r-- | lib/fuzzer/FuzzerIOWindows.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fuzzer/FuzzerIOWindows.cpp b/lib/fuzzer/FuzzerIOWindows.cpp index b8c200b81..510afebef 100644 --- a/lib/fuzzer/FuzzerIOWindows.cpp +++ b/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) |
