Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca89db5

Browse files
committed
Remove dead code
The configure check for HAVE_DECL_LLVMORCREGISTERPERF was removed bye9a9843, but some code guarded by it was left. (That commitremoved the "register" calls but left the "unregister" calls.) Thatcode 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 parent2e75492 commitca89db5

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)

[8]ページ先頭

©2009-2025 Movatter.jp