[libclc] 62/79: utils: Adapt to llvm r325155
Andreas Boll
aboll-guest at moszumanska.debian.org
Mon Mar 19 16:51:01 UTC 2018
This is an automated email from the git hooks/post-receive script.
aboll-guest pushed a commit to branch master
in repository libclc.
commit 355405365c8df0f1b9daa365b9b6f5b4570495d2
Author: Jan Vesely <jan.vesely at rutgers.edu>
Date: Fri Feb 23 07:37:03 2018 +0000
utils: Adapt to llvm r325155
r325155 ("Pass a reference to a module to the bitcode writer.")
changed bit writer interface from pointer to reference
Reviewer: Aaron Watry <awatry at gmail.com>
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@325867 91177308-0d34-0410-b5e6-96231b3b80d8
---
utils/prepare-builtins.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/utils/prepare-builtins.cpp b/utils/prepare-builtins.cpp
index 0f03e05..de1e804 100644
--- a/utils/prepare-builtins.cpp
+++ b/utils/prepare-builtins.cpp
@@ -105,7 +105,11 @@ int main(int argc, char **argv) {
exit(1);
}
+#if HAVE_LLVM >= 0x0700
+ WriteBitcodeToFile(*M, Out->os());
+#else
WriteBitcodeToFile(M, Out->os());
+#endif
// Declare success.
Out->keep();
--
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