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 | 0da3d3b5baa78f0a91ac394f264f4944e21a8415 (patch) | |
tree | 7b72f1697fcc05a4469164d9e4fa4feb8409948b /libclc | |
parent | cb445d882e26b1075f7403b23b8041b666d7ff52 (diff) | |
download | llvm-0da3d3b5baa78f0a91ac394f264f4944e21a8415.zip llvm-0da3d3b5baa78f0a91ac394f264f4944e21a8415.tar.gz llvm-0da3d3b5baa78f0a91ac394f264f4944e21a8415.tar.bz2 |
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>
llvm-svn: 186610
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/utils/prepare-builtins.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libclc/utils/prepare-builtins.cpp b/libclc/utils/prepare-builtins.cpp index be1624b..4ad21e8 100644 --- a/libclc/utils/prepare-builtins.cpp +++ b/libclc/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); |