Removed diag messages.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@25 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
da0a10662e
commit
f686607fe4
1 changed files with 5 additions and 9 deletions
14
llvm/_core.c
14
llvm/_core.c
|
|
@ -658,8 +658,8 @@ _wLLVMCreateExecutionEngine(PyObject *self, PyObject *args)
|
||||||
LLVMModuleProviderRef mp;
|
LLVMModuleProviderRef mp;
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
int force_interpreter;
|
int force_interpreter;
|
||||||
LLVMExecutionEngineRef ee = 0;
|
LLVMExecutionEngineRef ee;
|
||||||
char *outmsg = 0;
|
char *outmsg;
|
||||||
PyObject *ret;
|
PyObject *ret;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
|
|
@ -668,14 +668,10 @@ _wLLVMCreateExecutionEngine(PyObject *self, PyObject *args)
|
||||||
|
|
||||||
mp = (LLVMModuleProviderRef) PyCObject_AsVoidPtr(obj);
|
mp = (LLVMModuleProviderRef) PyCObject_AsVoidPtr(obj);
|
||||||
|
|
||||||
printf("\ncalling LLVMCreateInterpreter..");
|
if (force_interpreter)
|
||||||
|
|
||||||
// if (force_interpreter)
|
|
||||||
error = LLVMCreateInterpreter(&ee, mp, &outmsg);
|
error = LLVMCreateInterpreter(&ee, mp, &outmsg);
|
||||||
// else
|
else
|
||||||
// error = LLVMCreateJITCompiler(&ee, mp, &outmsg);
|
error = LLVMCreateJITCompiler(&ee, mp, &outmsg);
|
||||||
|
|
||||||
printf("error = %d, outmsg = %s, ee = %p\n", error, outmsg, ee);
|
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
ret = PyString_FromString(outmsg);
|
ret = PyString_FromString(outmsg);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue