[pypy-svn] r49946 - pypy/dist/pypy/translator/llvm

arigo at codespeak.net arigo at codespeak.net
Thu Dec 20 10:25:25 CET 2007


Author: arigo
Date: Thu Dec 20 10:25:20 2007
New Revision: 49946

Modified:
   pypy/dist/pypy/translator/llvm/genllvm.py
Log:
* Restore two lines that may have been deleted by accident,
  causing many tests to fail.
* Use 1 instead of 255 as the Unix process exit code in case
  of exception.


Modified: pypy/dist/pypy/translator/llvm/genllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/genllvm.py	(original)
+++ pypy/dist/pypy/translator/llvm/genllvm.py	Thu Dec 20 10:25:20 2007
@@ -36,7 +36,7 @@
         argv = get_argv()
         args = [rffi.charp2str(argv[i]) for i in range(argc)]
 
-        result = 255
+        result = 1
         try:
             result = entrypoint(args)
         except Exception, exc:
@@ -142,6 +142,9 @@
 
         # set up externs nodes
         self.setup_externs(c_db, self.db)
+
+        self.translator.rtyper.specialize_more_blocks()
+        self.db.setup_all()
         self._checkpoint('setup_all externs')
         
         self._print_node_stats()



More information about the Pypy-commit mailing list