This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Rename IDENTIFIER_NODE in a plugin
On Tue, Oct 30, 2012 at 01:39:59PM -0400, Peter Colberg wrote:
> How does one reassign the IDENTIFIER_POINTER of an IDENTIFIER_NODE?
My question does not make sense, since identifiers are immutable.
I found an alternative solution used throughout the GCC code:
DECL_NAME(decl) = get_identifier(name)
get_identifier is mentioned in the documentation as wellâ
http://gcc.gnu.org/onlinedocs/gccint/Identifiers.html#Identifiers
Peter