Content-Length: 278591 | pFad | http://github.com/postgrespro/postgres/commit/ca89db5f9d0b03a10706312bbe8b8a43b1ec7538

BA Remove dead code · postgrespro/postgres@ca89db5 · GitHub
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

Lines changed: 0 additions & 8 deletions
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/ca89db5f9d0b03a10706312bbe8b8a43b1ec7538

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy