diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-12 01:04:30 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-12 01:04:30 +0000 |
commit | 0a68fe2ffc43a542942da21fae7d87ad48d8304b (patch) | |
tree | 442492b537ff528b7fea53cc01b4e59296992a49 /llvm/lib/VMCore/Core.cpp | |
parent | e002fbea56c67a46385b651c72cdf6a2242e193a (diff) | |
download | bcm5719-llvm-0a68fe2ffc43a542942da21fae7d87ad48d8304b.tar.gz bcm5719-llvm-0a68fe2ffc43a542942da21fae7d87ad48d8304b.zip |
Add (very basic) bindings for ModuleProvider.
llvm-svn: 44899
Diffstat (limited to 'llvm/lib/VMCore/Core.cpp')
-rw-r--r-- | llvm/lib/VMCore/Core.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index 2f0053a2f13..b910cf15011 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -18,6 +18,7 @@ #include "llvm/DerivedTypes.h" #include "llvm/GlobalVariable.h" #include "llvm/TypeSymbolTable.h" +#include "llvm/ModuleProvider.h" #include <cassert> using namespace llvm; @@ -1030,3 +1031,16 @@ LLVMValueRef LLVMBuildShuffleVector(LLVMBuilderRef B, LLVMValueRef V1, return wrap(unwrap(B)->CreateShuffleVector(unwrap(V1), unwrap(V2), unwrap(Mask), Name)); } + + +/*===-- Module providers --------------------------------------------------===*/ + +LLVMModuleProviderRef +LLVMCreateModuleProviderForExistingModule(LLVMModuleRef M) { + return wrap(new ExistingModuleProvider(unwrap(M))); +} + +void LLVMDisposeModuleProvider(LLVMModuleProviderRef MP) { + delete unwrap(MP); +} + |