[pypy-svn] r16764 - pypy/release/0.7.x/pypy/translator

ericvrp at codespeak.net ericvrp at codespeak.net
Sat Aug 27 14:52:32 CEST 2005


Author: ericvrp
Date: Sat Aug 27 14:52:32 2005
New Revision: 16764

Modified:
   pypy/release/0.7.x/pypy/translator/translator.py
Log:
fixed t.llvm


Modified: pypy/release/0.7.x/pypy/translator/translator.py
==============================================================================
--- pypy/release/0.7.x/pypy/translator/translator.py	(original)
+++ pypy/release/0.7.x/pypy/translator/translator.py	Sat Aug 27 14:52:32 2005
@@ -199,11 +199,12 @@
         
         Returns LLVM translation.
         """
-        from pypy.translator.llvm import genllvm
+        from pypy.translator.llvm.genllvm import GenLLVM
         if self.annotator is None:
             raise ValueError, "function has to be annotated."
-        gen = genllvm.GenLLVM(self)
-        return str(gen.compile())
+        gen = GenLLVM(translator)
+        filename = gen.gen_llvm_source()
+        return filename
     
     def generatecode(self, gencls, input_arg_types, func):
         if input_arg_types is None:



More information about the Pypy-commit mailing list