astffi.llvm.0.1.2.source-code.jni_com_alibaba_fastffi_llvm_ObjectFile_SectionRef_cxx_0x7cc3dd84.cc Maven / Gradle / Ivy
The newest version!
#include
#include
#include "llvm/Object/ObjectFile.h"
#ifdef __cplusplus
extern "C" {
#endif
// Common Stubs
JNIEXPORT
jint JNICALL Java_com_alibaba_fastffi_llvm_ObjectFile_1SectionRef_1cxx_10x7cc3dd84__1elementSize_00024_00024_00024(JNIEnv*, jclass) {
return (jint)sizeof(llvm::object::SectionRef);
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ObjectFile_1SectionRef_1cxx_10x7cc3dd84_nativeGetContents(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::Expected(reinterpret_cast(ptr)->getContents()));
}
JNIEXPORT
jlong JNICALL Java_com_alibaba_fastffi_llvm_ObjectFile_1SectionRef_1cxx_10x7cc3dd84_nativeGetName(JNIEnv*, jclass, jlong ptr, jlong rv_base) {
return reinterpret_cast(new((void*)rv_base) llvm::Expected(reinterpret_cast(ptr)->getName()));
}
#ifdef __cplusplus
}
#endif