]> git.ipfire.org Git - thirdparty/gcc.git/commit
Move get_call_rtx_from to final.c
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Jun 2025 01:29:48 +0000 (09:29 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Jun 2025 23:56:25 +0000 (07:56 +0800)
commit2da641d01700907d600ff9027ecfc82500342428
tree136ddf893f93a58f9f3ba4a3752f0354a19ab22d
parent5ff48aabf76c8913c013f233d3f42bb217a16e7b
Move get_call_rtx_from to final.c

Move get_call_rtx_from to final.c and call call_from_call_insn.

PR other/120493
* final.cc (call_from_call_insn): Change the argument type to
const rtx_call_insn *.
(get_call_rtx_from): New.
* rtl.h (is_a_helper <const rtx_call_insn *>::test): New.
(get_call_rtx_from): Moved to the final.cc section.
* rtlanal.cc (get_call_rtx_from): Removed.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/final.cc
gcc/rtl.h
gcc/rtlanal.cc