Skip to content

Instantly share code, notes, and snippets.

@HoLyVieR
Created February 19, 2016 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HoLyVieR/b3a5912063b2eaea95bd to your computer and use it in GitHub Desktop.
Save HoLyVieR/b3a5912063b2eaea95bd to your computer and use it in GitHub Desktop.
static PyObject* Py_LLVMBuilder_BuildLandingPad(Py_LLVM_Wrapped<LLVMBuilderRef>* self, PyObject* args)
{
Py_LLVM_Wrapped<LLVMTypeRef>* arg0;
long long arg1;
const char* arg2;
if (!PyArg_ParseTuple(args, "O!Ls", &Py_LLVMType_Type, &arg0, &arg1, &arg2))
{
return nullptr;
}
Py_LLVM_Wrapped<LLVMValueRef>* result = PyObject_New(Py_LLVM_Wrapped<LLVMValueRef>, &Py_LLVMValue_Type);
auto callReturn = LLVMBuildLandingPad(self->obj, arg0->obj, result->obj, arg1, arg2);
if (callReturn == nullptr)
{
Py_RETURN_NONE;
}
result->obj = callReturn;
return (PyObject*)result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment