[pypy-svn] r16995 - pypy/release/0.7.x/pypy/bin

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Aug 28 13:36:11 CEST 2005


Author: cfbolz
Date: Sun Aug 28 13:36:10 2005
New Revision: 16995

Modified:
   pypy/release/0.7.x/pypy/bin/translator.py
Log:
fix usage string


Modified: pypy/release/0.7.x/pypy/bin/translator.py
==============================================================================
--- pypy/release/0.7.x/pypy/bin/translator.py	(original)
+++ pypy/release/0.7.x/pypy/bin/translator.py	Sun Aug 28 13:36:10 2005
@@ -24,10 +24,12 @@
     t.call(arg)                        # call original function
     t.dis()                            # bytecode disassemble
 
-    t.specialize()                     # use low level operations (for C only)
+    t.specialize()                     # use low level operations 
     f = t.ccompile()                   # C compilation
-    f = t.llvmcompile()                # LLVM compilation
-    assert f(arg) == t.call(arg)       # sanity check
+    mod = t.llvmcompile()              # LLVM compilation
+    assert f(arg) == func(arg)         # sanity check (for C)
+    assert mod.pypy_func_wrapper(arg) == func(arg)     # sanity check (for LLVM)
+    
 
 Some functions are provided for the benefit of interactive testing.
 Try dir(test) for list of current snippets.



More information about the Pypy-commit mailing list