Fix breakage of LLVM 3.1.
Add LLVM version number in llvmpy.
This commit is contained in:
parent
dd32ce56b1
commit
5b6a1d75f8
7 changed files with 50 additions and 8 deletions
|
|
@ -155,6 +155,7 @@ const CodeModel::Model CodeModelMap[] = {
|
|||
|
||||
} // end anony namespace
|
||||
|
||||
#if LLVM_VERSION_MAJOR >= 3 && LLVM_VERSION_MINOR >= 2
|
||||
LLVMPassRef LLVMCreateTargetTransformInfo(LLVMTargetMachineRef tmref){
|
||||
using namespace llvm;
|
||||
TargetMachine * tm = unwrap(tmref);
|
||||
|
|
@ -162,6 +163,7 @@ LLVMPassRef LLVMCreateTargetTransformInfo(LLVMTargetMachineRef tmref){
|
|||
tm->getVectorTargetTransformInfo());
|
||||
return wrap(tti);
|
||||
}
|
||||
#endif
|
||||
|
||||
LLVMPassRef LLVMCreateTargetLibraryInfo(const char * triple){
|
||||
using namespace llvm;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue