This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Getting a tree node for a field of a variable
- From: "Ferad Zyulkyarov" <feradz at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 18 Jan 2007 16:48:01 +0100
- Subject: Getting a tree node for a field of a variable
Hi,
Please, would you suggest me any clues on how to get a tree node for a
field of a variable within the AST.
Let's say that somewhere I declared:
MyStruct *var;
What I want to do is to get a tree node of a field within "var", i.e.
"var->field"
What I want actually is to modify "var->field", i.e.
var->field = 10;
but I couldn't find any useful functions to use for doing that.
Any suggestions are welcome. Thanks a lot.
--
Ferad Zyulkyarov