[libclc] 72/291: Fix build with LLVM 3.4
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository libclc.
commit 2e8fa9fcabb2af14f720cfbdc93b54c050b84e66
Author: Aaron Watry <awatry at gmail.com>
Date: Thu Jul 18 21:24:35 2013 +0000
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 at gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@186610 91177308-0d34-0410-b5e6-96231b3b80d8
---
utils/prepare-builtins.cpp | 5 +++++
1 file changed, 5 insertions(+)
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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list