astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_Binary_Library_cxx_0xb4c94917.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/Object/Binary.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_Binary_1Library_1cxx_10xb4c94917_nativeCreateBinary(JNIEnv*, jclass, jlong rv_base, jlong arg0 /* fileName0 */) {
return reinterpret_cast(new((void*)rv_base) llvm::Expected>(llvm::object::createBinary(*reinterpret_cast(arg0))));
}
#ifdef __cplusplus
}
#endif