[pypy-svn] r28884 - pypy/dist/pypy/translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Fri Jun 16 16:25:18 CEST 2006
Author: antocuni
Date: Fri Jun 16 16:25:14 2006
New Revision: 28884
Modified:
pypy/dist/pypy/translator/cli/function.py
Log:
We really want this to be 'elif' instead of 'if' :-).
Modified: pypy/dist/pypy/translator/cli/function.py
==============================================================================
--- pypy/dist/pypy/translator/cli/function.py (original)
+++ pypy/dist/pypy/translator/cli/function.py Fri Jun 16 16:25:14 2006
@@ -59,11 +59,13 @@
args = self.args
meth_type = 'static'
- self.ilasm.begin_function(self.name, args, returntype, self.is_entrypoint, meth_type)
+ self.ilasm.begin_function(self.name, args, returntype, self.is_entrypoint, meth_type)
if func_name == 'll_time_time':
ilasm.opcode('call float64 [pypylib]pypy.runtime.Utils::Time()')
+ elif func_name == 'll_time_clock':
+ ilasm.opcode('call float64 [pypylib]pypy.runtime.Utils::Clock()')
else:
- assert False, 'Unknown primitive function: %s' % func
+ assert False, 'Unknown primitive function: %s' % func_name
self.ilasm.opcode('ret')
self.ilasm.end_function()
More information about the Pypy-commit
mailing list