This commit is contained in:
Siu Kwan Lam 2013-07-31 16:05:24 -05:00
commit 625858aa6f
2 changed files with 6 additions and 4 deletions

View file

@ -70,7 +70,7 @@ namespace extra{
static
PyObject* callwrite(PyObject* self, PyObject* arg)
{
char meth[] = "method";
char meth[] = "write";
char fmt[] = "O";
return PyObject_CallMethod(self, meth, fmt, arg);
}
@ -965,7 +965,7 @@ PyObject* llvm_sys_getHostCPUFeatures(PyObject* Features)
}
}
#if LLVM_VERSION_MAJOR >= 3 && LLVM_VERSION_MINOR >= 3
static
PyObject* llvm_sys_isLittleEndianHost()
{
@ -982,4 +982,5 @@ PyObject* llvm_sys_isBigEndianHost()
Py_RETURN_TRUE;
else
Py_RETURN_FALSE;
}
}
#endif

View file

@ -36,6 +36,7 @@ def run_llvm_config(extra_args):
return stdout.decode().strip()
llvm_version = run_llvm_config(['--version'])
print('LLVM version = %r' % llvm_version)
targets_built = run_llvm_config(['--targets-built'])
@ -62,7 +63,7 @@ def auto_intrinsic_gen(incdir):
print("Generate intrinsic IDs")
from tools import intrgen
if llvm_version >= (3, 3):
if llvm_version.startswith('3.3'):
path = "%s/llvm/IR/Intrinsics.gen" % incdir
else:
path = "%s/llvm/Intrinsics.gen" % incdir