Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ef668d8

Browse files
llvmjit: Make llvm_types_module variable static
Commit b059d2f 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
1 parent 2dad308 commit ef668d8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/backend/jit/llvm/llvmjit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ LLVMTypeRef StructAggStatePerTransData;
7777

7878
LLVMValueRef AttributeTemplate;
7979

80-
LLVMModuleRef llvm_types_module = NULL;
80+
static LLVMModuleRef llvm_types_module = NULL;
8181

8282
static bool llvm_session_initialized = false;
8383
static size_t llvm_generation = 0;

src/include/jit/llvmjit.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ typedef struct LLVMJitContext
5555
List *handles;
5656
} LLVMJitContext;
5757

58-
/* llvm module containing information about types */
59-
extern PGDLLIMPORT LLVMModuleRef llvm_types_module;
60-
6158
/* type and struct definitions */
6259
extern PGDLLIMPORT LLVMTypeRef TypeParamBool;
6360
extern PGDLLIMPORT LLVMTypeRef TypePGFunction;

0 commit comments

Comments
 (0)