[libclc] r325867 - utils: Adapt to llvm r325155
Jan Vesely via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 22 23:37:03 PST 2018
Author: jvesely
Date: Thu Feb 22 23:37:03 2018
New Revision: 325867
URL: http://llvm.org/viewvc/llvm-project?rev=325867&view=rev
Log:
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>
Modified:
libclc/trunk/utils/prepare-builtins.cpp
Modified: libclc/trunk/utils/prepare-builtins.cpp
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/utils/prepare-builtins.cpp?rev=325867&r1=325866&r2=325867&view=diff
==============================================================================
--- libclc/trunk/utils/prepare-builtins.cpp (original)
+++ libclc/trunk/utils/prepare-builtins.cpp Thu Feb 22 23:37:03 2018
@@ -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();
More information about the cfe-commits
mailing list