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/FuzzerIO.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/FuzzerIO.cpp')
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerIO.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerIO.cpp b/compiler-rt/lib/fuzzer/FuzzerIO.cpp index dac5ec658f1..f3ead0ec535 100644 --- a/compiler-rt/lib/fuzzer/FuzzerIO.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerIO.cpp @@ -100,6 +100,14 @@ std::string DirPlusFile(const std::string &DirPath, return DirPath + GetSeparator() + FileName; } +std::string Basename(const std::string &Path, char Separator) { + size_t Pos = Path.rfind(Separator); + if (Pos == std::string::npos) + return Path; + assert(Pos < Path.size()); + return Path.substr(Pos + 1); +} + void DupAndCloseStderr() { int OutputFd = DuplicateFile(2); if (OutputFd > 0) { |