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

rxe at codespeak.net rxe at codespeak.net
Mon Jan 16 12:08:02 CET 2006


Author: rxe
Date: Mon Jan 16 12:08:01 2006
New Revision: 22210

Modified:
   pypy/dist/pypy/translator/llvm/codewriter.py
   pypy/dist/pypy/translator/llvm/genllvm.py
Log:
Add an explicit close to codewriter.



Modified: pypy/dist/pypy/translator/llvm/codewriter.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/codewriter.py	(original)
+++ pypy/dist/pypy/translator/llvm/codewriter.py	Mon Jan 16 12:08:01 2006
@@ -10,6 +10,9 @@
         self.file = file
         self.word_repr = db.get_machine_word()
 
+    def close(self): 
+        self.file.close()
+
     def _resolvetail(self, tail, cconv):
         # from: http://llvm.cs.uiuc.edu/docs/LangRef.html
         # The optional "tail" marker indicates whether the callee function

Modified: pypy/dist/pypy/translator/llvm/genllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/genllvm.py	(original)
+++ pypy/dist/pypy/translator/llvm/genllvm.py	Mon Jan 16 12:08:01 2006
@@ -63,6 +63,7 @@
 
         self.source_generated = True
         self._checkpoint('done')
+        codewriter.close()
         return self.filename
 
     def setup(self, func):



More information about the Pypy-commit mailing list