summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Fuzzer/FuzzerTracePC.cpp2
-rw-r--r--llvm/lib/Fuzzer/FuzzerUtil.cpp10
-rw-r--r--llvm/lib/Fuzzer/FuzzerUtil.h2
3 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerTracePC.cpp b/llvm/lib/Fuzzer/FuzzerTracePC.cpp
index d42bfc253fd..a646c250225 100644
--- a/llvm/lib/Fuzzer/FuzzerTracePC.cpp
+++ b/llvm/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/llvm/lib/Fuzzer/FuzzerUtil.cpp b/llvm/lib/Fuzzer/FuzzerUtil.cpp
index 2d95f40e46a..f5a77737449 100644
--- a/llvm/lib/Fuzzer/FuzzerUtil.cpp
+++ b/llvm/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/llvm/lib/Fuzzer/FuzzerUtil.h b/llvm/lib/Fuzzer/FuzzerUtil.h
index 62d6e61dcf1..9c90040b09c 100644
--- a/llvm/lib/Fuzzer/FuzzerUtil.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud