Added EngineBuilder.
Added test/enginebuilder.
This commit is contained in:
parent
6a02c36f04
commit
5bb4b8affb
8 changed files with 267 additions and 3 deletions
29
llvm/llvm_c_extra.h
Normal file
29
llvm/llvm_c_extra.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#ifndef LLVM_C_EXTRA_H_
|
||||
#define LLVM_C_EXTRA_H_
|
||||
|
||||
#include <llvm-c/Core.h>
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// Resurrect from llvm-c/Core.h
|
||||
#define DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ty, ref) \
|
||||
inline ty *unwrap(ref P) { \
|
||||
return reinterpret_cast<ty*>(P); \
|
||||
} \
|
||||
\
|
||||
inline ref wrap(const ty *P) { \
|
||||
return reinterpret_cast<ref>(const_cast<ty*>(P)); \
|
||||
}
|
||||
|
||||
typedef struct LLVMOpaqueEngineBuilder *LLVMEngineBuilderRef;
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif //LLVM_C_EXTRA_H_
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue