mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Remove dead code
The configure check for HAVE_DECL_LLVMORCREGISTERPERF was removed by
e9a9843e13, 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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user