From 6cc8ee707c1b4337120aa2972e2ad13a4861bbc3 Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Mon, 13 Jun 2022 10:42:51 +0100 Subject: remove LLVM < 9 --- tools/klee/main.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tools') diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index 3b0731c8..8dc2fd27 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -914,11 +914,7 @@ void externalsAndGlobalsCheck(const llvm::Module *m) { for (BasicBlock::const_iterator it = bbIt->begin(), ie = bbIt->end(); it != ie; ++it) { if (const CallInst *ci = dyn_cast(it)) { -#if LLVM_VERSION_CODE >= LLVM_VERSION(8, 0) if (isa(ci->getCalledOperand())) { -#else - if (isa(ci->getCalledValue())) { -#endif klee_warning_once(&*fnIt, "function \"%s\" has inline asm", fnIt->getName().data()); @@ -1088,11 +1084,7 @@ createLibCWrapper(std::vector> &modules, std::vector args; args.push_back(llvm::ConstantExpr::getBitCast( -#if LLVM_VERSION_CODE >= LLVM_VERSION(9, 0) cast(inModuleReference.getCallee()), -#else - inModuleReference, -#endif ft->getParamType(0))); args.push_back(&*(stub->arg_begin())); // argc auto arg_it = stub->arg_begin(); -- cgit 1.4.1