nbtree: fix read page recheck typo.
[pgsql.git] / src / backend / jit / llvm / llvmjit_wrap.cpp
blob7f7623dac6471357e8e492bd1e1af6e1eeaf4688
1 /*-------------------------------------------------------------------------
3 * llvmjit_wrap.cpp
4 * Parts of the LLVM interface not (yet) exposed to C.
6 * Copyright (c) 2016-2024, PostgreSQL Global Development Group
8 * IDENTIFICATION
9 * src/backend/lib/llvm/llvmjit_wrap.cpp
11 *-------------------------------------------------------------------------
14 extern "C"
16 #include "postgres.h"
19 #include <llvm-c/Core.h>
20 #include <llvm/IR/Function.h>
22 #include "jit/llvmjit.h"
26 * C-API extensions.
29 LLVMTypeRef
30 LLVMGetFunctionReturnType(LLVMValueRef r)
32 return llvm::wrap(llvm::unwrap<llvm::Function>(r)->getReturnType());
35 LLVMTypeRef
36 LLVMGetFunctionType(LLVMValueRef r)
38 return llvm::wrap(llvm::unwrap<llvm::Function>(r)->getFunctionType());