r94686 changed all ModuleProvider parameters to Modules, which made the
authorJeffrey Yasskin <jyasskin@google.com>
Wed, 3 Feb 2010 19:18:04 +0000 (19:18 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Wed, 3 Feb 2010 19:18:04 +0000 (19:18 +0000)
1-argument ExecutionEngine::create(Module*) ambiguous with the signature that
used to be ExecutionEngine::create(ModuleProvider*, defaulted_params).  Fixed
by removing the 1-argument create().  Fixes PR6221.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95236 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h
lib/ExecutionEngine/ExecutionEngine.cpp

index ce6a2e9af0a4244db0e666f6e6bd879a3c9b64fe..01b727f825275cca1abfc567ad61358087609f01 100644 (file)
@@ -157,11 +157,6 @@ public:
                                  // default freeMachineCodeForFunction works.
                                  bool GVsWithCode = true);
 
-  /// create - This is the factory method for creating an execution engine which
-  /// is appropriate for the current machine.  This takes ownership of the
-  /// module.
-  static ExecutionEngine *create(Module *M);
-
   /// createJIT - This is the factory method for creating a JIT for the current
   /// machine, it does not fall back to the interpreter.  This takes ownership
   /// of the Module and JITMemoryManager if successful.
index d4af85997317529b4e204e8c81341ccae370a340..7d629af83cba5941a345e8b4128e31827598af27 100644 (file)
@@ -387,10 +387,6 @@ ExecutionEngine *ExecutionEngine::create(Module *M,
       .create();
 }
 
-ExecutionEngine *ExecutionEngine::create(Module *M) {
-  return EngineBuilder(M).create();
-}
-
 ExecutionEngine *EngineBuilder::create() {
   // Make sure we can resolve symbols in the program as well. The zero arg
   // to the function tells DynamicLibrary to load the program, not a library.