commit | 8b5295b7bb8bf44f13df7fc8e38069d1218b1f94 | [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 | 61c7ef34e35dbf059cfc1add03780343dfe33459 [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. ///