Prototyped non-Python string slicing implementation.

This commit is contained in:
Jon Riehl 2012-10-24 17:14:32 -05:00
commit 6d19096438

View file

@ -7,6 +7,7 @@
import opcode
import types
import logging
import llvm.core as lc
@ -20,6 +21,8 @@ from phi_injector import PhiInjector, synthetic_opname
# ______________________________________________________________________
# Module data
logger = logging.getLogger(__name__)
# XXX Stolen from numba.translate:
_compare_mapping_float = {'>':lc.FCMP_OGT,
@ -208,7 +211,8 @@ class LLVMTranslator (BytecodeFlowVisitor):
del self.pending_phis
del self.llvm_definitions
del self.llvm_blocks
if __debug__: print(ret_val)
if __debug__ and logger.getEffectiveLevel() < logging.DEBUG:
logger.debug(str(ret_val))
return ret_val
def enter_block (self, block):