commit | 466b3effd8f70f0d2c18314367c33ff7c60584c8 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Oct 21 22:57:11 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Oct 21 22:57:11 2007 +0000 |
tree | 05cb3d24853770dce98bbef628909f04465bbc32 | |
parent | fb0fa9102951c085f9f79ae88917bebafc4ab807 [diff] [blame] |
Add a convenience method for creating EE's. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43206 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 512c452..192caa8 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -328,6 +328,10 @@ return EE; } +ExecutionEngine *ExecutionEngine::create(Module *M) { + return create(new ExistingModuleProvider(M)); +} + /// getPointerToGlobal - This returns the address of the specified global /// value. This may involve code generation if it's a function. ///