[pypy-svn] r48531 - pypy/dist/pypy/translator/llvm
rxe at codespeak.net
rxe at codespeak.net
Sat Nov 10 22:22:49 CET 2007
Author: rxe
Date: Sat Nov 10 22:22:48 2007
New Revision: 48531
Modified:
pypy/dist/pypy/translator/llvm/database.py
Log:
work around llvm2.1 bug, seems it doesnt like constants for floats
Modified: pypy/dist/pypy/translator/llvm/database.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/database.py (original)
+++ pypy/dist/pypy/translator/llvm/database.py Sat Nov 10 22:22:48 2007
@@ -473,7 +473,9 @@
assert len(packed) == 4
repr = "0x" + "".join([("%02x" % ord(ii)) for ii in packed])
else:
- repr = "%f" % f
+ #repr = "%f" % f
+ # XXX work around llvm2.1 bug, seems it doesnt like constants for floats
+ repr = "fptrunc(double %f to float)" % f
# llvm requires a . when using e notation
if "e" in repr and "." not in repr:
More information about the Pypy-commit
mailing list