[Libclc-dev] [PATCH 1/1] utils: Adapt to llvm r325155
Jan Vesely via Libclc-dev
libclc-dev at lists.llvm.org
Mon Feb 19 13:22:11 PST 2018
r325155 ("Pass a reference to a module to the bitcode writer.")
changed bit writer interface from pointer to reference
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
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();
--
2.14.3
More information about the Libclc-dev
mailing list