pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
Subject: [PATCH v3 3/4] wip: llvmjit: Make llvm_types_module variable static.
Date: Mon, 31 Oct 2022 22:35:56 -0700

Not sure why I did that differently in b059d2f45685a.
---
 src/include/jit/llvmjit.h      | 3 ---
 src/backend/jit/llvm/llvmjit.c | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

inline patch 1: src/include/jit/llvmjit.h, src/backend/jit/llvm/llvmjit.c (+1/-4 lines) download inline-1.patchdiff --git a/src/include/jit/llvmjit.h b/src/include/jit/llvmjit.h index 4541f9a2c42..f4c01c28672 100644 --- a/src/include/jit/llvmjit.h +++ b/src/include/jit/llvmjit.h @@ -55,9 +55,6 @@ typedef struct LLVMJitContext List *handles; } LLVMJitContext; -/* llvm module containing information about types */ -extern PGDLLIMPORT LLVMModuleRef llvm_types_module; - /* type and struct definitions */ extern PGDLLIMPORT LLVMTypeRef TypeParamBool; extern PGDLLIMPORT LLVMTypeRef TypePGFunction; diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c index 360de20ebee..3625edceb3e 100644 --- a/src/backend/jit/llvm/llvmjit.c +++ b/src/backend/jit/llvm/llvmjit.c @@ -77,7 +77,7 @@ LLVMTypeRef StructAggStatePerTransData; LLVMValueRef AttributeTemplate; -LLVMModuleRef llvm_types_module = NULL; +static LLVMModuleRef llvm_types_module = NULL; static bool llvm_session_initialized = false; static size_t llvm_generation = 0; -- 2.38.0
--ujwq2ejpw4d4bq5o Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v3-0004-wip-llvmjit-Plug-memory-leak-when-performing-inli.patch"

Message-ID: <no-message-id-7948@localhost>
Permalink:  ../no-message-id-7948@localhost/
Also on:    postgresql.org/message-id/no-message-id-7948@localhost

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: [PATCH v3 3/4] wip: llvmjit: Make llvm_types_module variable static.
  In-Reply-To: <no-message-id-7948@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox