diff options
author | Andrea Mattavelli <andreamattavelli@users.noreply.github.com> | 2017-07-24 16:17:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-24 16:17:04 +0200 |
commit | 769bd87658d3445af6770cadb1fe50edea833d15 (patch) | |
tree | 685a818fd4a7336232168fde9b86eb229b23e730 /lib/Core/ExecutorUtil.cpp | |
parent | 9fb2f5666d5f8c7c2f335fc8408883a0cf958964 (diff) | |
parent | 72ea2c66dd4da5971914dce334138f2d5f8db19a (diff) | |
download | klee-769bd87658d3445af6770cadb1fe50edea833d15.tar.gz |
Merge pull request #713 from MartinNowack/remove_llvm_29_33
Remove support for LLVM < 3.4
Diffstat (limited to 'lib/Core/ExecutorUtil.cpp')
-rw-r--r-- | lib/Core/ExecutorUtil.cpp | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/lib/Core/ExecutorUtil.cpp b/lib/Core/ExecutorUtil.cpp index b91b5dee..bd7c0711 100644 --- a/lib/Core/ExecutorUtil.cpp +++ b/lib/Core/ExecutorUtil.cpp @@ -20,23 +20,11 @@ #include "klee/util/GetElementPtrTypeIterator.h" -#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 3) #include "llvm/IR/Function.h" #include "llvm/IR/Constants.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/Module.h" #include "llvm/IR/DataLayout.h" -#else -#include "llvm/Constants.h" -#include "llvm/Function.h" -#include "llvm/Instructions.h" -#include "llvm/Module.h" -#if LLVM_VERSION_CODE <= LLVM_VERSION(3, 1) -#include "llvm/Target/TargetData.h" -#else -#include "llvm/DataLayout.h" -#endif -#endif #include <cassert> @@ -46,7 +34,7 @@ using namespace llvm; namespace klee { ref<ConstantExpr> Executor::evalConstantExpr(const llvm::ConstantExpr *ce) { - LLVM_TYPE_Q llvm::Type *type = ce->getType(); + llvm::Type *type = ce->getType(); ref<ConstantExpr> op1(0), op2(0), op3(0); int numOperands = ce->getNumOperands(); @@ -95,7 +83,7 @@ namespace klee { ref<ConstantExpr> addend = ConstantExpr::alloc(0, Context::get().getPointerWidth()); - if (LLVM_TYPE_Q StructType *st = dyn_cast<StructType>(*ii)) { + if (StructType *st = dyn_cast<StructType>(*ii)) { const StructLayout *sl = kmodule->targetData->getStructLayout(st); const ConstantInt *ci = cast<ConstantInt>(ii.getOperand()); @@ -153,11 +141,7 @@ namespace klee { case Instruction::FCmp: assert(0 && "floating point ConstantExprs unsupported"); } -#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 1) llvm_unreachable("Unsupported expression in evalConstantExpr"); -#else - assert(0 && "Unsupported expression in evalConstantExpr"); -#endif return op1; } } |