fix llvm and afl-showmap

This commit is contained in:
van Hauser
2020-08-13 22:34:11 +02:00
parent e9fb5f4cbc
commit b5d1a021ef
6 changed files with 12 additions and 3 deletions

View File

@ -260,6 +260,8 @@ void scanForDangerousFunctions(llvm::Module *M) {
if (!M) return;
#if LLVM_VERSION_MAJOR >= 4
for (GlobalIFunc &IF : M->ifuncs()) {
StringRef ifunc_name = IF.getName();
@ -325,6 +327,8 @@ void scanForDangerousFunctions(llvm::Module *M) {
}
#endif
}
static std::string getSourceName(llvm::Function *F) {