This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]