diff options
author | Aaron Watry <awatry@gmail.com> | 2013-07-18 21:24:35 +0000 |
---|---|---|
committer | Aaron Watry <awatry@gmail.com> | 2013-07-18 21:24:35 +0000 |
commit | 2e8fa9fcabb2af14f720cfbdc93b54c050b84e66 (patch) | |
tree | 939136277d8e56775feb2a70ec0e4ae914a48bad | |
parent | 2b80a46a5b9b0836e7a8cf4e6fbd85c332302398 (diff) |
Fix build with LLVM 3.4
F_Binary and friends were moved to include/Support/FileSystem.h
v2: Maintain compatibility with LLVM 3.3
Signed-off-by: Aaron Watry <awatry@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@186610 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | utils/prepare-builtins.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp index be1624b..4ad21e8 100644 --- a/utils/prepare-builtins.cpp +++ b/utils/prepare-builtins.cpp @@ -10,6 +10,7 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/Support/system_error.h" #include "llvm/Support/ToolOutputFile.h" +#include "llvm/Config/config.h" using namespace llvm; @@ -66,7 +67,11 @@ int main(int argc, char **argv) { std::string ErrorInfo; OwningPtr<tool_output_file> Out (new tool_output_file(OutputFilename.c_str(), ErrorInfo, +#if LLVM_VERSION_MAJOR > 3 || (LLVM_VERSION_MAJOR == 3 && LLVM_VERSION_MINOR > 3) + sys::fs::F_Binary)); +#else raw_fd_ostream::F_Binary)); +#endif if (!ErrorInfo.empty()) { errs() << ErrorInfo << '\n'; exit(1); |