1 /*-------------------------------------------------------------------------
4 * Parts of the LLVM interface not (yet) exposed to C.
6 * Copyright (c) 2016-2024, PostgreSQL Global Development Group
9 * src/backend/lib/llvm/llvmjit_wrap.cpp
11 *-------------------------------------------------------------------------
19 #include <llvm-c/Core.h>
20 #include <llvm/IR/Function.h>
22 #include "jit/llvmjit.h"
30 LLVMGetFunctionReturnType(LLVMValueRef r
)
32 return llvm::wrap(llvm::unwrap
<llvm::Function
>(r
)->getReturnType());
36 LLVMGetFunctionType(LLVMValueRef r
)
38 return llvm::wrap(llvm::unwrap
<llvm::Function
>(r
)->getFunctionType());