Added EngineBuilder.
Added test/enginebuilder.
This commit is contained in:
parent
6a02c36f04
commit
5bb4b8affb
8 changed files with 267 additions and 3 deletions
|
|
@ -45,11 +45,14 @@
|
|||
#include "llvm-c/Analysis.h"
|
||||
#include "llvm-c/ExecutionEngine.h"
|
||||
#include "llvm-c/Target.h"
|
||||
|
||||
// workaround missing bool type
|
||||
#define bool int
|
||||
#include "llvm-c/Transforms/PassManagerBuilder.h"
|
||||
#undef bool
|
||||
|
||||
#include "llvm_c_extra.h"
|
||||
|
||||
/* Project-wide setting */
|
||||
#if PY_MAJOR_VERSION >= 3
|
||||
#define LLVM_PY_USE_PYCAPSULE
|
||||
|
|
@ -88,8 +91,9 @@ _declare_std_ctor(LLVMExecutionEngineRef)
|
|||
_declare_std_ctor(LLVMTargetDataRef)
|
||||
_declare_std_ctor(LLVMGenericValueRef)
|
||||
|
||||
// extra LLVM class not defined in LLVM-C
|
||||
// extra LLVM classes
|
||||
_declare_std_ctor(LLVMPassManagerBuilderRef)
|
||||
_declare_std_ctor(LLVMEngineBuilderRef)
|
||||
|
||||
/* standard types */
|
||||
_declare_std_ctor(int)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue