[pypy-svn] r19411 - pypy/release/0.8.x/pypy/translator/llvm

ericvrp at codespeak.net ericvrp at codespeak.net
Wed Nov 2 15:01:21 CET 2005


Author: ericvrp
Date: Wed Nov  2 15:01:20 2005
New Revision: 19411

Modified:
   pypy/release/0.8.x/pypy/translator/llvm/genllvm.py
Log:
fix for gettings started example failure (with LLVM)


Modified: pypy/release/0.8.x/pypy/translator/llvm/genllvm.py
==============================================================================
--- pypy/release/0.8.x/pypy/translator/llvm/genllvm.py	(original)
+++ pypy/release/0.8.x/pypy/translator/llvm/genllvm.py	Wed Nov  2 15:01:20 2005
@@ -29,8 +29,8 @@
         LLVMNode.nodename_count = {}    
         self.db = Database(self, translator)
         self.translator = translator
-        self.gcpolicy = gcpolicy
-        self.exceptionpolicy = exceptionpolicy
+        self.gcpolicy = gcpolicy or GcPolicy.new(gcpolicy)
+        self.exceptionpolicy = exceptionpolicy or ExceptionPolicy.new(exceptionpolicy)
         extfuncnode.ExternalFuncNode.used_external_functions = {}
         self.debug = debug # for debug we create comments of every operation that may be executed
         if debug:



More information about the Pypy-commit mailing list