mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
llvm_mode: lower llvm version reqs to 3.4 (LLInsTrim will not be
available)
This commit is contained in:
@ -33,7 +33,10 @@ char *getBBName(const llvm::BasicBlock *BB) {
|
||||
std::string Str;
|
||||
raw_string_ostream OS(Str);
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 4 || \
|
||||
(LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR >= 7)
|
||||
BB->printAsOperand(OS, false);
|
||||
#endif
|
||||
name = strdup(OS.str().c_str());
|
||||
return name;
|
||||
|
||||
@ -171,7 +174,7 @@ bool isInWhitelist(llvm::Function *F) {
|
||||
#else
|
||||
if (!Loc.isUnknown()) {
|
||||
|
||||
DILocation cDILoc(Loc.getAsMDNode(C));
|
||||
DILocation cDILoc(Loc.getAsMDNode(F->getContext()));
|
||||
|
||||
unsigned int instLine = cDILoc.getLineNumber();
|
||||
StringRef instFilename = cDILoc.getFilename();
|
||||
|
Reference in New Issue
Block a user