Rename IDENTIFIER_NODE in a plugin

Peter Colberg peter@colberg.org
Wed Oct 31 00:39:00 GMT 2012


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



More information about the Gcc mailing list