From f686607fe4b9333a6299cd3d714b3f6b24d671f1 Mon Sep 17 00:00:00 2001 From: "mdevan.foobar" Date: Tue, 22 Jul 2008 02:17:38 +0000 Subject: [PATCH] Removed diag messages. git-svn-id: http://llvm-py.googlecode.com/svn/trunk@25 8d1e9007-1d4e-0410-b67e-1979fd6579aa --- llvm/_core.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/llvm/_core.c b/llvm/_core.c index 1a41c41..d91f6fa 100644 --- a/llvm/_core.c +++ b/llvm/_core.c @@ -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);