Removed diag messages.

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@25 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2008-07-22 02:17:38 +00:00
commit f686607fe4

View file

@ -658,8 +658,8 @@ _wLLVMCreateExecutionEngine(PyObject *self, PyObject *args)
LLVMModuleProviderRef mp;
PyObject *obj;
int force_interpreter;
LLVMExecutionEngineRef ee = 0;
char *outmsg = 0;
LLVMExecutionEngineRef ee;
char *outmsg;
PyObject *ret;
int error;
@ -668,14 +668,10 @@ _wLLVMCreateExecutionEngine(PyObject *self, PyObject *args)
mp = (LLVMModuleProviderRef) PyCObject_AsVoidPtr(obj);
printf("\ncalling LLVMCreateInterpreter..");
// if (force_interpreter)
if (force_interpreter)
error = LLVMCreateInterpreter(&ee, mp, &outmsg);
// else
// error = LLVMCreateJITCompiler(&ee, mp, &outmsg);
printf("error = %d, outmsg = %s, ee = %p\n", error, outmsg, ee);
else
error = LLVMCreateJITCompiler(&ee, mp, &outmsg);
if (error) {
ret = PyString_FromString(outmsg);