Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r69019:7b0ecc2b0176
Date: 2014-01-30 09:28 +0100
http://bitbucket.org/pypy/pypy/changeset/7b0ecc2b0176/

Log:    Move function around.

diff --git a/rpython/translator/llvm/genllvm.py 
b/rpython/translator/llvm/genllvm.py
--- a/rpython/translator/llvm/genllvm.py
+++ b/rpython/translator/llvm/genllvm.py
@@ -1021,6 +1021,9 @@
                 else:
                     raise NotImplementedError(op)
 
+    def _tmp(self, type_=None):
+        return VariableRepr(type_, '%tmp{}'.format(next(self.tmp_counter)))
+
     def op_llvm_gcmap(self, result):
         self.w('{result.V} = bitcast i8* @__gcmap to {result.T}'
                 .format(**locals()))
@@ -1037,9 +1040,6 @@
         type_ = result.type_.to.repr_type()
         self.w('{result.V} = alloca {type_}'.format(**locals()))
 
-    def _tmp(self, type_=None):
-        return VariableRepr(type_, '%tmp{}'.format(next(self.tmp_counter)))
-
     # TODO: implement
 
     def op_have_debug_prints(self, result):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to