Commit 37f6b006 authored by John Zhang's avatar John Zhang

add we_are_translated_to_mu() to object model

parent 335d98c7
......@@ -308,6 +308,15 @@ def we_are_translated():
def sc_we_are_translated(ctx):
return Constant(True)
def we_are_translated_to_mu():
return False
def sc_we_are_translated_to_mu(ctx):
from rpython.config.translationoption import get_translation_config
config = get_translation_config()
return Constant(config.translation.backend == 'mu')
def register_replacement_for(replaced_function, sandboxed_name=None):
def wrap(func):
from rpython.rtyper.extregistry import ExtRegistryEntry
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment