about summary refs log tree commit diff homepage
path: root/tools
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2017-06-07 14:57:45 +0200
committerMartinNowack <martin.nowack@gmail.com>2018-09-18 10:36:36 +0100
commit411754f7922a21229f9d3d4349cfb766900228ec (patch)
treea1ca95ce0dbca5b48bc61fc3c66356effb5e6212 /tools
parent4d30c74c7b38e32073c92bf9d8bb7c5acf597cfd (diff)
downloadklee-411754f7922a21229f9d3d4349cfb766900228ec.tar.gz
llvm4: handle different header names
LLVM 4 renamed and splitted some headers. Take this into account in
includes.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/klee/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp
index 2c653251..1de5fbeb 100644
--- a/tools/klee/main.cpp
+++ b/tools/klee/main.cpp
@@ -23,7 +23,6 @@
 #include "klee/Interpreter.h"
 #include "klee/Statistics.h"
 
-#include "llvm/Bitcode/ReaderWriter.h"
 #include "llvm/IR/Constants.h"
 #include "llvm/IR/IRBuilder.h"
 #include "llvm/IR/InstrTypes.h"
@@ -46,6 +45,12 @@
 #include "llvm/Support/system_error.h"
 #endif
 
+#if LLVM_VERSION_CODE >= LLVM_VERSION(4, 0)
+#include <llvm/Bitcode/BitcodeReader.h>
+#else
+#include <llvm/Bitcode/ReaderWriter.h>
+#endif
+
 #include <dirent.h>
 #include <signal.h>
 #include <unistd.h>