[pypy-svn] r16007 - pypy/dist/pypy/translator/llvm2
ericvrp at codespeak.net
ericvrp at codespeak.net
Fri Aug 12 15:10:50 CEST 2005
Author: ericvrp
Date: Fri Aug 12 15:10:49 2005
New Revision: 16007
Modified:
pypy/dist/pypy/translator/llvm2/funcnode.py
Log:
fix to prevent multiple function definitions
Modified: pypy/dist/pypy/translator/llvm2/funcnode.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/funcnode.py (original)
+++ pypy/dist/pypy/translator/llvm2/funcnode.py Fri Aug 12 15:10:49 2005
@@ -27,12 +27,12 @@
returntype = self.db.repr_arg_type(self.type_.RESULT)
inputargtypes = self.db.repr_arg_type_multi(self.type_._trueargs())
codewriter.funcdef(self.ref, returntype, inputargtypes)
-
+
class FuncNode(ConstantLLVMNode):
def __init__(self, db, value):
self.db = db
self.value = value
- self.ref = "%" + value.graph.name
+ self.ref = self.make_ref('%', value.graph.name)
self.graph = value.graph
remove_same_as(self.graph)
remove_double_links(self.db._translator, self.graph)
More information about the Pypy-commit
mailing list