[llvm] r310325 - [libFuzzer] remove stale code
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 7 17:14:49 PDT 2017
Author: kcc
Date: Mon Aug 7 17:14:49 2017
New Revision: 310325
URL: http://llvm.org/viewvc/llvm-project?rev=310325&view=rev
Log:
[libFuzzer] remove stale code
Modified:
llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
llvm/trunk/lib/Fuzzer/FuzzerUtil.cpp
llvm/trunk/lib/Fuzzer/FuzzerUtil.h
Modified: llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp?rev=310325&r1=310324&r2=310325&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp Mon Aug 7 17:14:49 2017
@@ -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
Modified: llvm/trunk/lib/Fuzzer/FuzzerUtil.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerUtil.cpp?rev=310325&r1=310324&r2=310325&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerUtil.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerUtil.cpp Mon Aug 7 17:14:49 2017
@@ -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++)
Modified: llvm/trunk/lib/Fuzzer/FuzzerUtil.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerUtil.h?rev=310325&r1=310324&r2=310325&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerUtil.h (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerUtil.h Mon Aug 7 17:14:49 2017
@@ -41,8 +41,6 @@ std::string DescribePC(const char *Symbo
unsigned NumberOfCpuCores();
-bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out);
-
// Platform specific functions.
void SetSignalHandler(const FuzzingOptions& Options);
More information about the llvm-commits
mailing list