Fix build since llvm r286566 and require at least llvm 4.0

llvm-svn: 286634
This commit is contained in:
Tom Stellard 2016-11-11 21:34:47 +00:00
parent e477a0e5ec
commit 088faab429
2 changed files with 4 additions and 3 deletions

View File

@ -69,8 +69,8 @@ llvm_version = string.split(string.replace(llvm_config(['--version']), 'svn', ''
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'])

View File

@ -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"