[pypy-svn] r35613 - pypy/dist/pypy/translator/llvm
mwh at codespeak.net
mwh at codespeak.net
Tue Dec 12 10:31:58 CET 2006
Author: mwh
Date: Tue Dec 12 10:31:56 2006
New Revision: 35613
Modified:
pypy/dist/pypy/translator/llvm/opwriter.py
Log:
define hint for the llvm generator.
now pypy-llvm gets to the point of failing to link
(something to do with execv and execve).
Modified: pypy/dist/pypy/translator/llvm/opwriter.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/opwriter.py (original)
+++ pypy/dist/pypy/translator/llvm/opwriter.py Tue Dec 12 10:31:56 2006
@@ -245,7 +245,7 @@
def cast_primitive(self, opr):
" works for all casts "
- assert len(opr.argrefs) == 1
+ #assert len(opr.argrefs) == 1
self.codewriter.cast(opr.retref, opr.argtypes[0],
opr.argrefs[0], opr.rettype)
same_as = cast_primitive
@@ -512,3 +512,6 @@
def debug_print(self, opr):
pass # XXX
+
+ def hint(self, opr):
+ self.same_as(opr)
More information about the Pypy-commit
mailing list