summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerIOWindows.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-08-29 18:40:41 +0000
committerMatt Morehouse <mascasa@google.com>2018-08-29 18:40:41 +0000
commit5b20f00cbaabf7b9831f58a2d7f7bfe3203ba844 (patch)
treec74717639bf9df86f38449a0b1b353adb0575340 /lib/fuzzer/FuzzerIOWindows.cpp
parent3ef5d5638fd5155876396355773b83bbbf767ca3 (diff)
downloadcompiler-rt-5b20f00cbaabf7b9831f58a2d7f7bfe3203ba844.tar.gz
Revert "[libFuzzer] Port to Windows"
This reverts r340949 due to bot breakage again. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@340954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerIOWindows.cpp')
-rw-r--r--lib/fuzzer/FuzzerIOWindows.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/fuzzer/FuzzerIOWindows.cpp b/lib/fuzzer/FuzzerIOWindows.cpp
index 314b79d0f..74853646b 100644
--- a/lib/fuzzer/FuzzerIOWindows.cpp
+++ b/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);