[pypy-svn] r35619 - in pypy/dist/pypy/translator: . llvm
mwh at codespeak.net
mwh at codespeak.net
Tue Dec 12 11:12:40 CET 2006
Author: mwh
Date: Tue Dec 12 11:12:37 2006
New Revision: 35619
Modified:
pypy/dist/pypy/translator/driver.py
pypy/dist/pypy/translator/llvm/genllvm.py
Log:
in fact, it's less confusing to have GenLLVM.__init__ not take a config
parameter at all.
Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py (original)
+++ pypy/dist/pypy/translator/driver.py Tue Dec 12 11:12:37 2006
@@ -473,7 +473,7 @@
# XXX Need more options for policies/llvm-backendoptions here?
self.llvmgen = genllvm.GenLLVM(translator, self.config.translation.gc,
- self.standalone, config=self.config)
+ self.standalone)
llvm_filename = self.llvmgen.gen_llvm_source(self.entry_point)
self.log.info("written: %s" % (llvm_filename,))
Modified: pypy/dist/pypy/translator/llvm/genllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/genllvm.py (original)
+++ pypy/dist/pypy/translator/llvm/genllvm.py Tue Dec 12 11:12:37 2006
@@ -25,7 +25,7 @@
function_count = {}
def __init__(self, translator, gcpolicy, standalone,
- debug=False, logging=True, stackless=False, config=None):
+ debug=False, logging=True, stackless=False):
# reset counters
LLVMNode.nodename_count = {}
@@ -39,9 +39,7 @@
self.standalone = standalone
self.translator = translator
- if config is None:
- config = translator.config
- self.config = config
+ self.config = translator.config
self.stackless = stackless
# the debug flag is for creating comments of every operation
More information about the Pypy-commit
mailing list