aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-08-08 00:14:49 +0000
committerKostya Serebryany <kcc@google.com>2017-08-08 00:14:49 +0000
commit7550cbd415ad8593413030ad66a00b55fc6eaccf (patch)
treee7ef48df1c3a067f6760d8c0583a2224494def5f
parent468107aa761f28229c186c8b635d8ad735080098 (diff)
[libFuzzer] remove stale code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310325 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Fuzzer/FuzzerTracePC.cpp2
-rw-r--r--lib/Fuzzer/FuzzerUtil.cpp10
-rw-r--r--lib/Fuzzer/FuzzerUtil.h2
3 files changed, 0 insertions, 14 deletions
diff --git a/lib/Fuzzer/FuzzerTracePC.cpp b/lib/Fuzzer/FuzzerTracePC.cpp
index d42bfc253fd..a646c250225 100644
--- a/lib/Fuzzer/FuzzerTracePC.cpp
+++ b/lib/Fuzzer/FuzzerTracePC.cpp
@@ -20,9 +20,7 @@
#include "FuzzerIO.h"
#include "FuzzerUtil.h"
#include "FuzzerValueBitMap.h"
-#include <map>
#include <set>
-#include <sstream>
// The coverage counters and PCs.
// These are declared as global variables named "__sancov_*" to simplify
diff --git a/lib/Fuzzer/FuzzerUtil.cpp b/lib/Fuzzer/FuzzerUtil.cpp
index 2d95f40e46a..f5a77737449 100644
--- a/lib/Fuzzer/FuzzerUtil.cpp
+++ b/lib/Fuzzer/FuzzerUtil.cpp
@@ -205,16 +205,6 @@ unsigned NumberOfCpuCores() {
return N;
}
-bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out) {
- FILE *Pipe = OpenProcessPipe(Command.c_str(), "r");
- if (!Pipe) return false;
- char Buff[1024];
- size_t N;
- while ((N = fread(Buff, 1, sizeof(Buff), Pipe)) > 0)
- Out->append(Buff, N);
- return true;
-}
-
size_t SimpleFastHash(const uint8_t *Data, size_t Size) {
size_t Res = 0;
for (size_t i = 0; i < Size; i++)
diff --git a/lib/Fuzzer/FuzzerUtil.h b/lib/Fuzzer/FuzzerUtil.h
index 62d6e61dcf1..9c90040b09c 100644
--- a/lib/Fuzzer/FuzzerUtil.h
+++ b/lib/Fuzzer/FuzzerUtil.h
@@ -41,8 +41,6 @@ std::string DescribePC(const char *SymbolizedFMT, uintptr_t PC);
unsigned NumberOfCpuCores();
-bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out);
-
// Platform specific functions.
void SetSignalHandler(const FuzzingOptions& Options);