[pypy-svn] r49176 - in pypy/dist/pypy: rpython/lltypesystem/test translator/llvm

xoraxax at codespeak.net xoraxax at codespeak.net
Mon Nov 26 22:00:53 CET 2007


Author: xoraxax
Date: Mon Nov 26 22:00:53 2007
New Revision: 49176

Modified:
   pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py
   pypy/dist/pypy/translator/llvm/node.py
Log:
Fix name mangling in LLVM, unskip a test for that and change the skip message for another test.


Modified: pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/test/test_rffi.py	Mon Nov 26 22:00:53 2007
@@ -500,7 +500,5 @@
         return compile_llvm(func, args, **kwds)
 
     def test_hashdefine(self):
-        py.test.skip("FIXME")
+        py.test.skip("Macros cannot be called as llexternals by design, rffi does not have any special support for them")
 
-    def test_opaque_type(self):
-        py.test.skip("FIXME")

Modified: pypy/dist/pypy/translator/llvm/node.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/node.py	(original)
+++ pypy/dist/pypy/translator/llvm/node.py	Mon Nov 26 22:00:53 2007
@@ -1,11 +1,15 @@
 from pypy.rpython.lltypesystem import lltype
 
+NAME_BLACKLIST = "get".split()
 
 class Node(object):
     __slots__ = "name".split()
     prefix = '%'
 
     nodename_count = {}
+    for _name in NAME_BLACKLIST:
+        nodename_count[_name] = 1
+    del _name
 
     def mangle(self, name):
         if name not in self.nodename_count:



More information about the Pypy-commit mailing list