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 | 1ae6135fa37eb061499d079b9b33dc82dcc1283f (patch) | |
tree | 2b885952bef39a4e82c353bd5880762d77517054 /lib/VMCore/Core.cpp | |
parent | 772de516b6851e679d3da9e5171712b9c3122019 (diff) | |
download | external_llvm-1ae6135fa37eb061499d079b9b33dc82dcc1283f.zip external_llvm-1ae6135fa37eb061499d079b9b33dc82dcc1283f.tar.gz external_llvm-1ae6135fa37eb061499d079b9b33dc82dcc1283f.tar.bz2 |
Add (very basic) bindings for ModuleProvider.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Core.cpp')
-rw-r--r-- | lib/VMCore/Core.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp index 2f0053a..b910cf1 100644 --- a/lib/VMCore/Core.cpp +++ b/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); +} + |