aboutsummaryrefslogtreecommitdiff
path: root/llvm_mode
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-02-19 10:52:44 +0100
committervan Hauser <vh@thc.org>2020-02-19 10:52:44 +0100
commitf9d7ad8e4353fe306b7574e3d645ba2c3ea423ed (patch)
tree301acd761c149e78bdb2a5377b2fe1aeba6b8612 /llvm_mode
parent69898722cb7a12a88604f2298736fdf244634bfd (diff)
downloadafl++-f9d7ad8e4353fe306b7574e3d645ba2c3ea423ed.tar.gz
forgot cleanup
Diffstat (limited to 'llvm_mode')
-rw-r--r--llvm_mode/afl-clang-fast.c4
-rw-r--r--llvm_mode/afl-llvm-pass.so.cc3
-rw-r--r--llvm_mode/split-compares-pass.so.cc4
-rw-r--r--llvm_mode/split-switches-pass.so.cc3
4 files changed, 8 insertions, 6 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index c2b89473..5e152e86 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -498,7 +498,9 @@ int main(int argc, char** argv, char** envp) {
exit(1);
- } else if ((isatty(2) && !getenv("AFL_QUIET")) || getenv("AFL_DEBUG") != NULL) {
+ } else if ((isatty(2) && !getenv("AFL_QUIET")) ||
+
+ getenv("AFL_DEBUG") != NULL) {
#ifdef USE_TRACE_PC
SAYF(cCYA "afl-clang-fast" VERSION cRST
diff --git a/llvm_mode/afl-llvm-pass.so.cc b/llvm_mode/afl-llvm-pass.so.cc
index 6bd175f2..133c64b4 100644
--- a/llvm_mode/afl-llvm-pass.so.cc
+++ b/llvm_mode/afl-llvm-pass.so.cc
@@ -145,8 +145,6 @@ bool AFLCoverage::runOnModule(Module &M) {
char be_quiet = 0;
-printf("DEBUG? %s\n", getenv("AFL_DEBUG"));
-
if ((isatty(2) && !getenv("AFL_QUIET")) || getenv("AFL_DEBUG") != NULL) {
SAYF(cCYA "afl-llvm-pass" VERSION cRST " by <lszekeres@google.com>\n");
@@ -483,7 +481,6 @@ printf("DEBUG? %s\n", getenv("AFL_DEBUG"));
}
}
-printf ("BEQUIET!\n");
return true;
diff --git a/llvm_mode/split-compares-pass.so.cc b/llvm_mode/split-compares-pass.so.cc
index 1c7a77c3..fe021071 100644
--- a/llvm_mode/split-compares-pass.so.cc
+++ b/llvm_mode/split-compares-pass.so.cc
@@ -1244,12 +1244,14 @@ bool SplitComparesTransform::runOnModule(Module &M) {
simplifyIntSignedness(M);
if (isatty(2) && getenv("AFL_QUIET") == NULL) {
+
errs() << "Split-compare-pass by laf.intel@gmail.com, extended by "
"heiko@hexco.de\n";
if (enableFPSplit)
errs() << "Split-floatingpoint-compare-pass: " << splitFPCompares(M)
- << " FP comparisons splitted\n";
+ << " FP comparisons splitted\n";
+
}
switch (bitw) {
diff --git a/llvm_mode/split-switches-pass.so.cc b/llvm_mode/split-switches-pass.so.cc
index 70ffe7b6..d2ba28cb 100644
--- a/llvm_mode/split-switches-pass.so.cc
+++ b/llvm_mode/split-switches-pass.so.cc
@@ -491,7 +491,8 @@ bool SplitSwitchesTransform::splitSwitches(Module &M) {
* less, don't bother with the code below. */
if (!SI->getNumCases() || bitw <= 8) {
- if (isatty(2) && getenv("AFL_QUIET") == NULL) errs() << "skip trivial switch..\n";
+ if (isatty(2) && getenv("AFL_QUIET") == NULL)
+ errs() << "skip trivial switch..\n";
continue;
}