Fix breakage of LLVM 3.1.

Add LLVM version number in llvmpy.
This commit is contained in:
Siu Kwan Lam 2013-01-04 14:24:26 -06:00
commit 5b6a1d75f8
7 changed files with 50 additions and 8 deletions

View file

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