summaryrefslogtreecommitdiff
path: root/src/backend/jit
diff options
context:
space:
mode:
authorPeter Eisentraut2024-04-17 08:46:43 +0000
committerPeter Eisentraut2024-04-17 08:48:04 +0000
commitca89db5f9d0b03a10706312bbe8b8a43b1ec7538 (patch)
treec5fc979356deb0dedb5bacce90e0444e3aef9695 /src/backend/jit
parent2e75492b3c33beaf226981b796d81b6127544fea (diff)
Remove dead code
The configure check for HAVE_DECL_LLVMORCREGISTERPERF was removed by e9a9843e138, but some code guarded by it was left. (That commit removed the "register" calls but left the "unregister" calls.) That code cannot be reached anymore, so remove it. Reported-by: Heikki Linnakangas <[email protected]> Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'src/backend/jit')
-rw-r--r--src/backend/jit/llvm/llvmjit.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/backend/jit/llvm/llvmjit.c b/src/backend/jit/llvm/llvmjit.c
index 92b4993a98a..1d439f24554 100644
--- a/src/backend/jit/llvm/llvmjit.c
+++ b/src/backend/jit/llvm/llvmjit.c
@@ -1033,20 +1033,12 @@ llvm_shutdown(int code, Datum arg)
if (llvm_opt3_orc)
{
-#if defined(HAVE_DECL_LLVMORCREGISTERPERF) && HAVE_DECL_LLVMORCREGISTERPERF
- if (jit_profiling_support)
- LLVMOrcUnregisterPerf(llvm_opt3_orc);
-#endif
LLVMOrcDisposeInstance(llvm_opt3_orc);
llvm_opt3_orc = NULL;
}
if (llvm_opt0_orc)
{
-#if defined(HAVE_DECL_LLVMORCREGISTERPERF) && HAVE_DECL_LLVMORCREGISTERPERF
- if (jit_profiling_support)
- LLVMOrcUnregisterPerf(llvm_opt0_orc);
-#endif
LLVMOrcDisposeInstance(llvm_opt0_orc);
llvm_opt0_orc = NULL;
}