aboutsummaryrefslogtreecommitdiff
path: root/llvm_mode
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-05-15 09:27:15 +0200
committervan Hauser <vh@thc.org>2020-05-15 09:27:15 +0200
commitd536ddc24085bced267143b4f45102715d71693e (patch)
tree7028606718ed9e4bb0c8d11406ef9c6e4856ba94 /llvm_mode
parent564399bd754e355d28da5b498856c05b63901661 (diff)
downloadafl++-d536ddc24085bced267143b4f45102715d71693e.tar.gz
change: slaves only sync from masters
Diffstat (limited to 'llvm_mode')
-rw-r--r--llvm_mode/LLVMInsTrim.so.cc18
-rw-r--r--llvm_mode/afl-llvm-pass.so.cc20
2 files changed, 21 insertions, 17 deletions
diff --git a/llvm_mode/LLVMInsTrim.so.cc b/llvm_mode/LLVMInsTrim.so.cc
index 7dc96bc3..ced1f383 100644
--- a/llvm_mode/LLVMInsTrim.so.cc
+++ b/llvm_mode/LLVMInsTrim.so.cc
@@ -160,21 +160,23 @@ struct InsTrim : public ModulePass {
else
#else
if (ngram_size_str)
-#ifdef LLVM_VERSION_STRING
+ #ifdef LLVM_VERSION_STRING
FATAL(
"Sorry, NGRAM branch coverage is not supported with llvm version %s!",
LLVM_VERSION_STRING);
-#else
-#ifndef LLVM_VERSION_PATCH
+ #else
+ #ifndef LLVM_VERSION_PATCH
FATAL(
- "Sorry, NGRAM branch coverage is not supported with llvm version %d.%d.%d!",
+ "Sorry, NGRAM branch coverage is not supported with llvm version "
+ "%d.%d.%d!",
LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR, 0);
-#else
+ #else
FATAL(
- "Sorry, NGRAM branch coverage is not supported with llvm version %d.%d.%d!",
+ "Sorry, NGRAM branch coverage is not supported with llvm version "
+ "%d.%d.%d!",
LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR, LLVM_VERISON_PATCH);
-#endif
-#endif
+ #endif
+ #endif
#endif
PrevLocSize = 1;
diff --git a/llvm_mode/afl-llvm-pass.so.cc b/llvm_mode/afl-llvm-pass.so.cc
index 5bf705f8..82dece75 100644
--- a/llvm_mode/afl-llvm-pass.so.cc
+++ b/llvm_mode/afl-llvm-pass.so.cc
@@ -211,15 +211,17 @@ bool AFLCoverage::runOnModule(Module &M) {
else
#else
if (ngram_size_str)
-#ifndef LLVM_VERSION_PATCH
- FATAL("Sorry, NGRAM branch coverage is not supported with llvm version %d.%d.%d!",
- LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR,
- 0);
-#else
- FATAL("Sorry, NGRAM branch coverage is not supported with llvm version %d.%d.%d!",
- LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR,
- LLVM_VERSION_PATCH);
-#endif
+ #ifndef LLVM_VERSION_PATCH
+ FATAL(
+ "Sorry, NGRAM branch coverage is not supported with llvm version "
+ "%d.%d.%d!",
+ LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR, 0);
+ #else
+ FATAL(
+ "Sorry, NGRAM branch coverage is not supported with llvm version "
+ "%d.%d.%d!",
+ LLVM_VERSION_MAJOR, LLVM_VERSION_MINOR, LLVM_VERSION_PATCH);
+ #endif
#endif
PrevLocSize = 1;