diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-21 22:57:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-21 22:57:11 +0000 |
commit | b5163bb9f0f53d73e969440ae6664c61b0820c97 (patch) | |
tree | 86eb9fd26d899634d4200f5d8c358371b1600056 /llvm/lib/ExecutionEngine | |
parent | 8ee70112eac662d67c0d5035577ec54fba9cfa88 (diff) | |
download | bcm5719-llvm-b5163bb9f0f53d73e969440ae6664c61b0820c97.tar.gz bcm5719-llvm-b5163bb9f0f53d73e969440ae6664c61b0820c97.zip |
Add a convenience method for creating EE's.
llvm-svn: 43206
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 512c4520e07..192caa894ca 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -328,6 +328,10 @@ ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP, 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. /// |