summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-03-15 00:39:06 +0000
committerKostya Serebryany <kcc@google.com>2017-03-15 00:39:06 +0000
commit70240430d9e27e45499e29f3f4ed232ab0488d31 (patch)
tree403de490da25969dcbdb8d207838649a503e01e4 /llvm
parent862a845aa5815a52f5622b53300d5ddadf1e991a (diff)
downloadbcm5719-llvm-70240430d9e27e45499e29f3f4ed232ab0488d31.tar.gz
bcm5719-llvm-70240430d9e27e45499e29f3f4ed232ab0488d31.zip
[libFuzzer] remove even more stale code
llvm-svn: 297797
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h2
-rw-r--r--llvm/lib/Fuzzer/FuzzerLoop.cpp16
2 files changed, 0 insertions, 18 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index 3a3889723f7..b15f614d726 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -141,8 +141,6 @@ private:
// Need to know our own thread.
static thread_local bool IsMyThread;
-
- bool InMergeMode = false;
};
}; // namespace fuzzer
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp
index 4f1755055c0..aeffb4388b1 100644
--- a/llvm/lib/Fuzzer/FuzzerLoop.cpp
+++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp
@@ -150,23 +150,7 @@ void Fuzzer::StaticDeathCallback() {
F->DeathCallback();
}
-static void WarnOnUnsuccessfullMerge(bool DoWarn) {
- if (!DoWarn) return;
- Printf(
- "***\n"
- "***\n"
- "***\n"
- "*** NOTE: merge did not succeed due to a failure on one of the inputs.\n"
- "*** You will need to filter out crashes from the corpus, e.g. like this:\n"
- "*** for f in WITH_CRASHES/*; do ./fuzzer $f && cp $f NO_CRASHES; done\n"
- "*** Future versions may have crash-resistant merge, stay tuned.\n"
- "***\n"
- "***\n"
- "***\n");
-}
-
void Fuzzer::DumpCurrentUnit(const char *Prefix) {
- WarnOnUnsuccessfullMerge(InMergeMode);
if (!CurrentUnitData) return; // Happens when running individual inputs.
MD.PrintMutationSequence();
Printf("; base unit: %s\n", Sha1ToString(BaseSha1).c_str());
OpenPOWER on IntegriCloud