summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerIOWindows.cpp
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-08-28 19:07:24 +0000
committerMatt Morehouse <mascasa@google.com>2018-08-28 19:07:24 +0000
commitdfdafdfd47764a9728726abd45f99ac9faca81e5 (patch)
treed8ef880c63fe3dfa238ff16026da431328ac7e25 /lib/fuzzer/FuzzerIOWindows.cpp
parent5ca960adad7c824b1ee5567271beb4b29abe9a3d (diff)
downloadcompiler-rt-dfdafdfd47764a9728726abd45f99ac9faca81e5.tar.gz
Revert "[libFuzzer] Port to Windows"
This reverts commit r340860 due to failing tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@340867 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);