about summary refs log tree commit diff homepage
path: root/include
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2018-05-21 15:12:44 +0200
committerMartinNowack <martin.nowack@gmail.com>2018-10-26 15:54:24 +0100
commitc6cfd6d722089b1560fefbd5f97177c8117aadbd (patch)
tree55ecd12a25195c1c916985624f77deaa30aa72e5 /include
parenta919c8649a26b85dba1eed147824e033333a408b (diff)
downloadklee-c6cfd6d722089b1560fefbd5f97177c8117aadbd.tar.gz
llvm6: SetVersionPrinter now passes down a stream
I.e. klee::printVersion should now have a parameter -- the output
stream. Change both the prototype and the implementation to handle this
properly.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/klee/Internal/Support/PrintVersion.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/klee/Internal/Support/PrintVersion.h b/include/klee/Internal/Support/PrintVersion.h
index 2c375ad2..87f73a00 100644
--- a/include/klee/Internal/Support/PrintVersion.h
+++ b/include/klee/Internal/Support/PrintVersion.h
@@ -10,8 +10,16 @@
 #ifndef KLEE_PRINT_VERSION_H
 #define KLEE_PRINT_VERSION_H
 
+#include "llvm/Support/raw_ostream.h"
+
+#include "klee/Config/Version.h"
+
 namespace klee {
+#if LLVM_VERSION_CODE >= LLVM_VERSION(6, 0)
+  void printVersion(llvm::raw_ostream &OS);
+#else
   void printVersion();
+#endif
 }
 
 #endif