[libclc] r286634 - Fix build since llvm r286566 and require at least llvm 4.0
Tom Stellard via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 11 13:34:47 PST 2016
Author: tstellar
Date: Fri Nov 11 15:34:47 2016
New Revision: 286634
URL: http://llvm.org/viewvc/llvm-project?rev=286634&view=rev
Log:
Fix build since llvm r286566 and require at least llvm 4.0
Modified:
libclc/trunk/configure.py
libclc/trunk/utils/prepare-builtins.cpp
Modified: libclc/trunk/configure.py
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/configure.py?rev=286634&r1=286633&r2=286634&view=diff
==============================================================================
--- libclc/trunk/configure.py (original)
+++ libclc/trunk/configure.py Fri Nov 11 15:34:47 2016
@@ -69,8 +69,8 @@ llvm_version = string.split(string.repla
llvm_int_version = int(llvm_version[0]) * 100 + int(llvm_version[1]) * 10
llvm_string_version = 'LLVM' + llvm_version[0] + '.' + llvm_version[1]
-if llvm_int_version < 390:
- print "libclc requires LLVM >= 3.9"
+if llvm_int_version < 400:
+ print "libclc requires LLVM >= 4.0"
sys.exit(1)
llvm_system_libs = llvm_config(['--system-libs'])
Modified: libclc/trunk/utils/prepare-builtins.cpp
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/utils/prepare-builtins.cpp?rev=286634&r1=286633&r2=286634&view=diff
==============================================================================
--- libclc/trunk/utils/prepare-builtins.cpp (original)
+++ libclc/trunk/utils/prepare-builtins.cpp Fri Nov 11 15:34:47 2016
@@ -1,4 +1,5 @@
-#include "llvm/Bitcode/ReaderWriter.h"
+#include "llvm/Bitcode/BitcodeReader.h"
+#include "llvm/Bitcode/BitcodeWriter.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/LLVMContext.h"
More information about the cfe-commits
mailing list