Added EngineBuilder.

Added test/enginebuilder.
This commit is contained in:
Siu Kwan Lam 2012-07-25 15:31:18 -07:00
commit 5bb4b8affb
8 changed files with 267 additions and 3 deletions

29
llvm/llvm_c_extra.h Normal file
View 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_