From c3135ee38276a41f0d89487fada003522fa2df8e Mon Sep 17 00:00:00 2001 From: Dan Liew Date: Wed, 20 Aug 2014 18:46:56 +0100 Subject: Fix compilation error due to change in raw_fd_ostream for LLVM3.5 --- lib/Solver/QueryLoggingSolver.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Solver/QueryLoggingSolver.cpp b/lib/Solver/QueryLoggingSolver.cpp index d5598d1d..5484a319 100644 --- a/lib/Solver/QueryLoggingSolver.cpp +++ b/lib/Solver/QueryLoggingSolver.cpp @@ -4,6 +4,10 @@ #include "klee/Internal/System/Time.h" #include "klee/Statistics.h" +#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 5) +#include "llvm/Support/FileSystem.h" +#endif + // // The KLEE Symbolic Virtual Machine // @@ -19,7 +23,11 @@ QueryLoggingSolver::QueryLoggingSolver(Solver *_solver, const std::string& commentSign, int queryTimeToLog) : solver(_solver), +#if LLVM_VERSION_CODE >= LLVM_VERSION(3, 5) + os(path.c_str(), ErrorInfo, llvm::sys::fs::OpenFlags::F_Text), +#else os(path.c_str(), ErrorInfo), +#endif BufferString(""), logBuffer(BufferString), queryCount(0), -- cgit 1.4.1