From d884d451c445c52f4e3b3b9dd8438fa5634181df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Cloutier?= Date: Fri, 26 Feb 2016 01:51:17 -0500 Subject: [PATCH] Temporary kludge for LLVM 3.7.1 The signature for `LLVMBuildLandingPad` was accidentally changed in 3.7 and reverted for 3.7.1. This removes the call since fcd doesn't use landing pads anyway. The LLVM 3.8 branch fixes the issue by having the build system generate the bindings.cpp file. --- fcd/python/bindings.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/fcd/python/bindings.cpp b/fcd/python/bindings.cpp index 66db658..c4481e8 100644 --- a/fcd/python/bindings.cpp +++ b/fcd/python/bindings.cpp @@ -2080,22 +2080,7 @@ static PyObject* Py_LLVMBuilder_BuildLShr(Py_LLVM_Wrapped* self, static PyObject* Py_LLVMBuilder_BuildLandingPad(Py_LLVM_Wrapped* self, PyObject* args) { - Py_LLVM_Wrapped* arg0; - long long arg1; - const char* arg2; - if (!PyArg_ParseTuple(args, "O!Ls", &Py_LLVMType_Type, &arg0, &arg1, &arg2)) - { - return nullptr; - } - - auto callReturn = LLVMBuildLandingPad(self->obj, arg0->obj, arg1, arg2); - if (callReturn == nullptr) - { - Py_RETURN_NONE; - } - Py_LLVM_Wrapped* result = PyObject_New(Py_LLVM_Wrapped, &Py_LLVMValue_Type); - result->obj = callReturn; - return (PyObject*)result; + Py_RETURN_NONE; } static PyObject* Py_LLVMBuilder_BuildLoad(Py_LLVM_Wrapped* self, PyObject* args)