]> git.ipfire.org Git - thirdparty/gcc.git/commit
cgraph: Add clone_identifier function.
authorAlfie Richards <alfie.richards@arm.com>
Fri, 31 Jan 2025 11:47:57 +0000 (11:47 +0000)
committerAlfie Richards <alfie.richards@arm.com>
Tue, 23 Sep 2025 09:47:42 +0000 (09:47 +0000)
commitc965a760e00b3f2762bfabe9ad6de39d2fc7bcce
tree06ff78f88a851b34b398d11cf02e93de2a52eb19
parent1953939243e1ab8c839c1bcb2a072d1e84627afe
cgraph: Add clone_identifier function.

This is similar to clone_function_name and its siblings but takes an
identifier tree node rather than a function declaration.

This is to be used in conjunction with the identifier node stored in
cgraph_function_version_info::assembler_name to mangle FMV functions in
later patches.

gcc/ChangeLog:

* cgraph.h (clone_identifier): New function.
* cgraphclones.cc (clone_identifier): New function.
(clone_function_name): Refactored to use clone_identifier.
(is_valid_asm_symbol): New helper function.
gcc/cgraph.h
gcc/cgraphclones.cc