From d3a467d8999e6e52892b13c2bc93ac829ee1b7c9 Mon Sep 17 00:00:00 2001 From: Richard Trembecký Date: Sun, 1 May 2016 16:38:21 +0200 Subject: llvm: make KLEE compile against LLVM 3.5 and 3.6 Based on work by @ccadeptic23 and @delcypher. Formatting fixed by @snf. Fix compiler warning by @martijnthe. Further fixes by @mchalupa. Refactored, so that changes can be reviewed -- no massive changes in whitespace and in the surrounding code. Signed-off-by: Jiri Slaby --- lib/Core/ExternalDispatcher.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/Core/ExternalDispatcher.h') diff --git a/lib/Core/ExternalDispatcher.h b/lib/Core/ExternalDispatcher.h index 94363bab..d869eb6f 100644 --- a/lib/Core/ExternalDispatcher.h +++ b/lib/Core/ExternalDispatcher.h @@ -10,7 +10,10 @@ #ifndef KLEE_EXTERNALDISPATCHER_H #define KLEE_EXTERNALDISPATCHER_H +#include "klee/Config/Version.h" + #include +#include #include #include @@ -28,6 +31,9 @@ namespace klee { private: typedef std::map dispatchers_ty; dispatchers_ty dispatchers; +#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 6) + std::unique_ptr dispatchModule_uniptr; +#endif llvm::Module *dispatchModule; llvm::ExecutionEngine *executionEngine; std::map preboundFunctions; -- cgit 1.4.1