mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
llvmjit: Make llvm_types_module variable static
Commit b059d2f45685a introduced llvm_types_module and accidentally exported it. As there is no usecase for accessing this variable externally, this makes it static. Author: Andres Freund <andres@anarazel.de> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/20221101055132.pjjsvlkeo4stbjkq@awork3.anarazel.de
This commit is contained in:
parent
2dad308e73
commit
ef668d8bf5
@ -77,7 +77,7 @@ LLVMTypeRef StructAggStatePerTransData;
|
|||||||
|
|
||||||
LLVMValueRef AttributeTemplate;
|
LLVMValueRef AttributeTemplate;
|
||||||
|
|
||||||
LLVMModuleRef llvm_types_module = NULL;
|
static LLVMModuleRef llvm_types_module = NULL;
|
||||||
|
|
||||||
static bool llvm_session_initialized = false;
|
static bool llvm_session_initialized = false;
|
||||||
static size_t llvm_generation = 0;
|
static size_t llvm_generation = 0;
|
||||||
|
@ -55,9 +55,6 @@ typedef struct LLVMJitContext
|
|||||||
List *handles;
|
List *handles;
|
||||||
} LLVMJitContext;
|
} LLVMJitContext;
|
||||||
|
|
||||||
/* llvm module containing information about types */
|
|
||||||
extern PGDLLIMPORT LLVMModuleRef llvm_types_module;
|
|
||||||
|
|
||||||
/* type and struct definitions */
|
/* type and struct definitions */
|
||||||
extern PGDLLIMPORT LLVMTypeRef TypeParamBool;
|
extern PGDLLIMPORT LLVMTypeRef TypeParamBool;
|
||||||
extern PGDLLIMPORT LLVMTypeRef TypePGFunction;
|
extern PGDLLIMPORT LLVMTypeRef TypePGFunction;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user