[pypy-svn] r48983 - in pypy/branch/remove-extcompiler-rctypes/pypy/translator/c: . test
cfbolz at codespeak.net
cfbolz at codespeak.net
Fri Nov 23 12:40:18 CET 2007
Author: cfbolz
Date: Fri Nov 23 12:40:17 2007
New Revision: 48983
Removed:
pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/symboltable.py
pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/test/test_symboltable.py
Modified:
pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py
Log:
remove the symboltable feature, it's disabled anyway
Modified: pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py (original)
+++ pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py Fri Nov 23 12:40:17 2007
@@ -20,7 +20,6 @@
class CBuilder(object):
c_source_filename = None
_compiled = False
- symboltable = None
modulename = None
def __init__(self, translator, entrypoint, config, libraries=None,
@@ -128,14 +127,10 @@
CBuilder.have___thread = check_under_under_thread()
if not self.standalone:
assert not self.config.translation.instrument
- from pypy.translator.c.symboltable import SymbolTable
- # XXX fix symboltable
- #self.symboltable = SymbolTable()
cfile, extra, include_dirs, library_dirs = \
gen_source(db, modulename, targetdir,
defines = defines,
exports = self.exports,
- symboltable = self.symboltable,
libraries = self.libraries,
extra_info = extra_info)
else:
@@ -197,8 +192,6 @@
mod = import_module_from_directory(self.c_source_filename.dirpath(),
self.c_source_filename.purebasename)
self.c_ext_module = mod
- if self.symboltable:
- self.symboltable.attach(mod) # hopefully temporary hack
return mod
def isolated_import(self):
@@ -686,7 +679,7 @@
def gen_source(database, modulename, targetdir, defines={}, exports={},
- symboltable=None, libraries=[], extra_info={}):
+ libraries=[], extra_info={}):
assert not database.standalone
if isinstance(targetdir, str):
targetdir = py.path.local(targetdir)
@@ -733,27 +726,6 @@
sg.gen_readable_parts_of_source(f)
#
- # Debugging info
- #
- if symboltable:
- print >> f
- print >> f, '/*******************************************************/'
- print >> f, '/*** Debugging info ***/'
- print >> f
- print >> f, 'static int debuginfo_offsets[] = {'
- for node in database.structdefnodes.values():
- for expr in symboltable.generate_type_info(database, node):
- print >> f, '\t%s,' % expr
- print >> f, '\t0 };'
- print >> f, 'static void *debuginfo_globals[] = {'
- for node in database.globalcontainers():
- if not isinstance(node, PyObjectNode):
- result = symboltable.generate_global_info(database, node)
- print >> f, '\t%s,' % (result,)
- print >> f, '\tNULL };'
- print >> f, '#include "src/debuginfo.h"'
-
- #
# PyObject support (strange) code
#
pyobjmaker = database.pyobjmaker
More information about the Pypy-commit
mailing list