[pypy-svn] r35125 - pypy/dist/pypy/jit/codegen/llvm/lib
ericvrp at codespeak.net
ericvrp at codespeak.net
Wed Nov 29 16:36:00 CET 2006
Author: ericvrp
Date: Wed Nov 29 16:35:58 2006
New Revision: 35125
Modified:
pypy/dist/pypy/jit/codegen/llvm/lib/libllvmjit.cpp
Log:
Fix to make the llvmjit tests pass again on Darwin.
It looks like the llvm libraries were not initialize prior to llvmjit?!?
Modified: pypy/dist/pypy/jit/codegen/llvm/lib/libllvmjit.cpp
==============================================================================
--- pypy/dist/pypy/jit/codegen/llvm/lib/libllvmjit.cpp (original)
+++ pypy/dist/pypy/jit/codegen/llvm/lib/libllvmjit.cpp Wed Nov 29 16:35:58 2006
@@ -32,13 +32,12 @@
using namespace llvm;
-Module* gp_module = new Module("llvmjit");
-ExecutionEngine* gp_execution_engine = ExecutionEngine::create(
- new ExistingModuleProvider(gp_module), false);
+Module* gp_module; // = new Module("llvmjit");
+ExecutionEngine* gp_execution_engine; // = ExecutionEngine::create(new ExistingModuleProvider(gp_module), false);
//all optimization/transform passes
-static cl::list<const PassInfo*, bool, PassNameParser>
- PassList(cl::desc("Optimizations available:"));
+//static cl::list<const PassInfo*, bool, PassNameParser>
+// PassList(cl::desc("Optimizations available:"));
//some global data for the tests to play with
int g_data;
More information about the Pypy-commit
mailing list