diff options
author | Dan Liew <daniel.liew@imperial.ac.uk> | 2014-08-20 23:32:36 +0100 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2014-09-17 08:07:45 -0700 |
commit | 0b0f7d0ad8465e551b0298e0a60ce68f7a2771ac (patch) | |
tree | 72e4c54d395ee5d9e746de36612dee6535d37196 | |
parent | 90e637a5e02f9d73473f5d14419e13f3ec4730b1 (diff) | |
download | klee-0b0f7d0ad8465e551b0298e0a60ce68f7a2771ac.tar.gz |
Compilation fix for LLVM3.5 caused by the removal of sys::fs::F_Binary.
The commit that caused this is r202052.
-rw-r--r-- | tools/klee/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/klee/main.cpp b/tools/klee/main.cpp index b2bb4c47..ab51c0dd 100644 --- a/tools/klee/main.cpp +++ b/tools/klee/main.cpp @@ -377,7 +377,9 @@ llvm::raw_fd_ostream *KleeHandler::openOutputFile(const std::string &filename) { llvm::raw_fd_ostream *f; std::string Error; std::string path = getOutputFilename(filename); -#if LLVM_VERSION_CODE >= LLVM_VERSION(3,0) +#if LLVM_VERSION_CODE >= LLVM_VERSION(3,5) + f = new llvm::raw_fd_ostream(path.c_str(), Error, llvm::sys::fs::F_None); +#elif LLVM_VERSION_CODE >= LLVM_VERSION(3,0) f = new llvm::raw_fd_ostream(path.c_str(), Error, llvm::sys::fs::F_Binary); #else f = new llvm::raw_fd_ostream(path.c_str(), Error, llvm::raw_fd_ostream::F_Binary); |