Names for structs from RECORD_TYPE trees

David Morse dm@bomberlan.net
Sun Sep 9 22:49:00 GMT 2001


Can anyone think of a way to fetch the name of a struct from its tree
node?  Given a node for a structure, with TREE_CODE (t) == RECORD_TYPE, I
find that DECL_NAME (TYPE_NAME (t)) returns NULL_TREE.  

That's what the documentation says it will do.

Unfortunately I need that name...



More information about the Gcc mailing list