[pypy-svn] r45496 - in pypy/dist/pypy/translator/llvm: . test
pedronis at codespeak.net
pedronis at codespeak.net
Sun Aug 5 09:49:36 CEST 2007
Author: pedronis
Date: Sun Aug 5 09:49:35 2007
New Revision: 45496
Modified:
pypy/dist/pypy/translator/llvm/opwriter.py
pypy/dist/pypy/translator/llvm/test/test_lladdresses.py
Log:
as usual not sure what to do about the LLVM backend, some ops are not needed anymore. stack_malloc would need adding.
Freeing stack allocated objects doesn't make much sense tough, change the test.
Modified: pypy/dist/pypy/translator/llvm/opwriter.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/opwriter.py (original)
+++ pypy/dist/pypy/translator/llvm/opwriter.py Sun Aug 5 09:49:35 2007
@@ -289,6 +289,7 @@
# ha, ha
pass
+ # XXX not needed anymore
def flavored_malloc(self, opr):
flavor = opr.op.args[0].value
type_ = opr.rettype[:-1] #XXX stripping of *
@@ -318,6 +319,7 @@
self.codewriter.comment('***Skipping free of stack allocated data')
else:
raise NotImplementedError
+ # XXX /not needed anymore
def call_boehm_gc_alloc(self, opr):
word = self.db.get_machine_word()
Modified: pypy/dist/pypy/translator/llvm/test/test_lladdresses.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/test/test_lladdresses.py (original)
+++ pypy/dist/pypy/translator/llvm/test/test_lladdresses.py Sun Aug 5 09:49:35 2007
@@ -132,7 +132,6 @@
def f(x):
a = A(x + 1)
result = a.val
- free_non_gc_object(a)
return result
fn = compile_function(f, [int])
assert fn(1) == 2
More information about the Pypy-commit
mailing list