diff options
author | Matt Morehouse <mascasa@google.com> | 2018-08-28 19:07:24 +0000 |
---|---|---|
committer | Matt Morehouse <mascasa@google.com> | 2018-08-28 19:07:24 +0000 |
commit | bab8556f01b36f519f3f7bd9f616cab17a5bf862 (patch) | |
tree | 00c47d724c2e95064360d3dbf945a87ef17a1b21 /compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp | |
parent | 755f41f3a2125d3ef56dfe2cb0997ae7243785c5 (diff) | |
download | bcm5719-llvm-bab8556f01b36f519f3f7bd9f616cab17a5bf862.tar.gz bcm5719-llvm-bab8556f01b36f519f3f7bd9f616cab17a5bf862.zip |
Revert "[libFuzzer] Port to Windows"
This reverts commit r340860 due to failing tests.
llvm-svn: 340867
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp')
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp index 314b79d0f81..74853646b21 100644 --- a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp @@ -72,26 +72,6 @@ bool IsFile(const std::string &Path) { return IsFile(Path, Att); } -std::string Basename(const std::string &Path) { - size_t Pos = Path.find_last_of("/\\"); - if (Pos == std::string::npos) return Path; - assert(Pos < Path.size()); - return Path.substr(Pos + 1); -} - -size_t FileSize(const std::string &Path) { - WIN32_FILE_ATTRIBUTE_DATA attr; - if (!GetFileAttributesExA(Path.c_str(), GetFileExInfoStandard, &attr)) { - Printf("GetFileAttributesExA() failed for \"%s\" (Error code: %lu).\n", - Path.c_str(), GetLastError()); - return 0; - } - ULARGE_INTEGER size; - size.HighPart = attr.nFileSizeHigh; - size.LowPart = attr.nFileSizeLow; - return size.QuadPart; -} - void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, Vector<std::string> *V, bool TopDir) { auto E = GetEpoch(Dir); |