[PATCH] Wrap.h: Define wrap / unwrap function for ExecutionEngine
Eric Christopher
echristo at gmail.com
Tue Apr 23 13:30:29 PDT 2013
On Tue, Apr 23, 2013 at 4:21 PM, Tom Stellard <tom at stellard.net> wrote:
> On Tue, Apr 23, 2013 at 04:08:57PM +0100, Eric Christopher wrote:
>> Go ahead. If you'd like to make sure this doesn't break in the future
>> then testcase :)
>>
>
> Sure, where should I put a testcase for this? In the test-suite?
>
Probably unittests?
-eric
> -Tom
>> -eric
>>
>> On Tue, Apr 23, 2013 at 3:54 PM, Tom Stellard <tom at stellard.net> wrote:
>> > From: Tom Stellard <thomas.stellard at amd.com>
>> >
>> > ---
>> > include/llvm/Wrap.h | 2 ++
>> > lib/ExecutionEngine/ExecutionEngineBindings.cpp | 1 -
>> > 2 files changed, 2 insertions(+), 1 deletion(-)
>> >
>> > diff --git a/include/llvm/Wrap.h b/include/llvm/Wrap.h
>> > index 79790d4..11ea6e4 100644
>> > --- a/include/llvm/Wrap.h
>> > +++ b/include/llvm/Wrap.h
>> > @@ -12,6 +12,7 @@
>> > //===----------------------------------------------------------------------===//
>> >
>> > #include "llvm-c/Core.h"
>> > +#include "llvm-c/ExecutionEngine.h"
>> > #include "llvm/IR/BasicBlock.h"
>> > #include "llvm/IR/IRBuilder.h"
>> > #include "llvm/IR/Module.h"
>> > @@ -67,6 +68,7 @@ namespace llvm {
>> > DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MemoryBuffer, LLVMMemoryBufferRef )
>> > DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LLVMContext, LLVMContextRef )
>> > DEFINE_SIMPLE_CONVERSION_FUNCTIONS(Use, LLVMUseRef )
>> > + DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ExecutionEngine, LLVMExecutionEngineRef)
>> > DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassManagerBase, LLVMPassManagerRef )
>> > DEFINE_STDCXX_CONVERSION_FUNCTIONS(PassRegistry, LLVMPassRegistryRef )
>> >
>> > diff --git a/lib/ExecutionEngine/ExecutionEngineBindings.cpp b/lib/ExecutionEngine/ExecutionEngineBindings.cpp
>> > index 03500c3..f18cb0d 100644
>> > --- a/lib/ExecutionEngine/ExecutionEngineBindings.cpp
>> > +++ b/lib/ExecutionEngine/ExecutionEngineBindings.cpp
>> > @@ -23,7 +23,6 @@ using namespace llvm;
>> >
>> > // Wrapping the C bindings types.
>> > DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef )
>> > -DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ExecutionEngine, LLVMExecutionEngineRef)
>> >
>> > inline DataLayout *unwrap(LLVMTargetDataRef P) {
>> > return reinterpret_cast<DataLayout*>(P);
>> > --
>> > 1.8.1.5
>> >
>> > _______________________________________________
>> > llvm-commits mailing list
>> > llvm-commits at cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list