Skip to content

Commit ca89db5

Browse files
committed
Remove dead code
The configure check for HAVE_DECL_LLVMORCREGISTERPERF was removed by e9a9843, 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 <hlinnaka@iki.fi> Discussion: https://www.postgresql.org/message-id/5539b16c-cff7-46d5-9621-c3fb6b549e9e@iki.fi
1 parent 2e75492 commit ca89db5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/backend/jit/llvm/llvmjit.c

-8
Original file line numberDiff line numberDiff line change
@@ -1033,20 +1033,12 @@ llvm_shutdown(int code, Datum arg)
10331033

10341034
if (llvm_opt3_orc)
10351035
{
1036-
#if defined(HAVE_DECL_LLVMORCREGISTERPERF) && HAVE_DECL_LLVMORCREGISTERPERF
1037-
if (jit_profiling_support)
1038-
LLVMOrcUnregisterPerf(llvm_opt3_orc);
1039-
#endif
10401036
LLVMOrcDisposeInstance(llvm_opt3_orc);
10411037
llvm_opt3_orc = NULL;
10421038
}
10431039

10441040
if (llvm_opt0_orc)
10451041
{
1046-
#if defined(HAVE_DECL_LLVMORCREGISTERPERF) && HAVE_DECL_LLVMORCREGISTERPERF
1047-
if (jit_profiling_support)
1048-
LLVMOrcUnregisterPerf(llvm_opt0_orc);
1049-
#endif
10501042
LLVMOrcDisposeInstance(llvm_opt0_orc);
10511043
llvm_opt0_orc = NULL;
10521044
}

0 commit comments

Comments
 (0)