llvm20 fix

This commit is contained in:
vanhauser-thc 2024-09-29 17:11:07 +02:00
parent 12271064f8
commit b88f132975
3 changed files with 14 additions and 4 deletions

View File

@ -29,6 +29,7 @@
- custom mutators: - custom mutators:
- custom_send_tcp custom mutator added, thanks to @dergoegge - custom_send_tcp custom mutator added, thanks to @dergoegge
- afl-cc - afl-cc
- fix to support pointless changes in LLVM 20
- new runtime (!) variable: `AFL_OLD_FORKSERVER` to use the old vanilla - new runtime (!) variable: `AFL_OLD_FORKSERVER` to use the old vanilla
AFL type forkserver. Useful for symcc/symqemu/nautilus/etc. with AFL type forkserver. Useful for symcc/symqemu/nautilus/etc. with
AFL_LLVM_INSTRUMENT=CLASSIC AFL_LLVM_INSTRUMENT=CLASSIC

View File

@ -50,7 +50,11 @@
#include "llvm/Support/SpecialCaseList.h" #include "llvm/Support/SpecialCaseList.h"
#include "llvm/Support/VirtualFileSystem.h" #include "llvm/Support/VirtualFileSystem.h"
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/Instrumentation.h" #if LLVM_VERSION_MAJOR < 20
#include "llvm/Transforms/Instrumentation.h"
#else
#include "llvm/Transforms/Utils/Instrumentation.h"
#endif
#if LLVM_VERSION_MAJOR < 17 #if LLVM_VERSION_MAJOR < 17
#include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/Transforms/IPO/PassManagerBuilder.h"
#endif #endif

View File

@ -63,11 +63,16 @@
#if LLVM_VERSION_MAJOR < 15 #if LLVM_VERSION_MAJOR < 15
#include "llvm/Support/raw_ostream.h" #include "llvm/Support/raw_ostream.h"
#endif #endif
#if LLVM_VERSION_MAJOR < 17 #if LLVM_VERSION_MAJOR < 20
#include "llvm/Transforms/Instrumentation.h" #if LLVM_VERSION_MAJOR < 17
#include "llvm/Transforms/Instrumentation.h"
#else
#include "llvm/TargetParser/Triple.h"
#endif
#else #else
#include "llvm/TargetParser/Triple.h" #include "llvm/Transforms/Utils/Instrumentation.h"
#endif #endif
#include "llvm/Transforms/Utils/BasicBlockUtils.h" #include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/ModuleUtils.h" #include "llvm/Transforms/Utils/ModuleUtils.h"