[pypy-svn] r32896 - pypy/dist/pypy/translator/llvm

ericvrp at codespeak.net ericvrp at codespeak.net
Thu Oct 5 09:46:56 CEST 2006


Author: ericvrp
Date: Thu Oct  5 09:46:54 2006
New Revision: 32896

Modified:
   pypy/dist/pypy/translator/llvm/buildllvm.py
Log:
Remove llvm opt flag '-enable-x86-fastcc' because it doesn't make our code faster.
Remove llvm opt flag '-relocation-model=static' because jumptable support is now in all llvm relocation models.


Modified: pypy/dist/pypy/translator/llvm/buildllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/buildllvm.py	(original)
+++ pypy/dist/pypy/translator/llvm/buildllvm.py	Thu Oct  5 09:46:54 2006
@@ -94,10 +94,7 @@
         source_files = []
 
     if not use_gcc:
-        llc_params = llvm_version() > 1.7 and '-enable-x86-fastcc' or ''
-        if llc_params and exe_name and sys.platform != 'darwin':
-            llc_params += ' -relocation-model=static'   #XXX while llvm jumptables not with PIC
-        cmds.append("llc %s %s.bc -f -o %s.s" % (llc_params, b, b))
+        cmds.append("llc %s.bc -f -o %s.s" % (b, b))
         cmds.append("as %s.s -o %s.o" % (b, b))
 
         if exe_name:



More information about the Pypy-commit mailing list