|
@@ -27,14 +27,6 @@ using namespace llvm;
|
|
// Wrapping the C bindings types.
|
|
// Wrapping the C bindings types.
|
|
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef)
|
|
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(GenericValue, LLVMGenericValueRef)
|
|
|
|
|
|
-inline DataLayout *unwrap(LLVMTargetDataRef P) {
|
|
|
|
- return reinterpret_cast<DataLayout*>(P);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-inline LLVMTargetDataRef wrap(const DataLayout *P) {
|
|
|
|
- return reinterpret_cast<LLVMTargetDataRef>(const_cast<DataLayout*>(P));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
inline TargetLibraryInfo *unwrap(LLVMTargetLibraryInfoRef P) {
|
|
inline TargetLibraryInfo *unwrap(LLVMTargetLibraryInfoRef P) {
|
|
return reinterpret_cast<TargetLibraryInfo*>(P);
|
|
return reinterpret_cast<TargetLibraryInfo*>(P);
|
|
}
|
|
}
|