Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef668d8

Browse filesBrowse 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
Copy full SHA for ef668d8

File tree

Expand file treeCollapse file tree

2 files changed

+1
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+1
-4
lines changed

‎src/backend/jit/llvm/llvmjit.c

Copy file name to clipboardExpand all lines: src/backend/jit/llvm/llvmjit.c
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/include/jit/llvmjit.h
-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.