[pypy-svn] r14201 - pypy/dist/pypy/translator/llvm2

ericvrp at codespeak.net ericvrp at codespeak.net
Mon Jul 4 12:51:13 CEST 2005


Author: ericvrp
Date: Mon Jul  4 12:51:12 2005
New Revision: 14201

Modified:
   pypy/dist/pypy/translator/llvm2/codewriter.py
Log:
cleaned up llvm code-generator in case boeg gc is not used


Modified: pypy/dist/pypy/translator/llvm2/codewriter.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/codewriter.py	(original)
+++ pypy/dist/pypy/translator/llvm2/codewriter.py	Mon Jul  4 12:51:12 2005
@@ -10,9 +10,10 @@
 class CodeWriter(object): 
     def __init__(self): 
         self._lines = []
-        self.declare('sbyte* %GC_malloc(uint)')
-        self.declare('sbyte* %GC_malloc_atomic(uint)')
-        self.declare('sbyte* %GC_realloc(sbyte*, uint)')
+        if use_boehm_gc:
+            self.declare('sbyte* %GC_malloc(uint)')
+            self.declare('sbyte* %GC_malloc_atomic(uint)')
+            self.declare('sbyte* %GC_realloc(sbyte*, uint)')
 
     def append(self, line): 
         if show_line_numbers:



More information about the Pypy-commit mailing list