[Prev][Next][Index]
Re: SgSymbol::declaredInStmt is a dog
- From: Beata Winnicka <bfatyga@slab.extreme.indiana.edu>
- Date: Mon, 20 Mar 95 09:37:36 -0500
- To: Lars Thomas Hansen <lth@skinner.cs.uoregon.edu>
- Subject: Re: SgSymbol::declaredInStmt is a dog
- Cc: sage-bugs@cica.cica.indiana.edu
- Sender: owner-sage-bugs@extreme.indiana.edu
How about writing a pass that would traverse all the statements, look
for declarations you are interested in, and annotate symbols that you
are interested in with appropriate statement numbers (you can use
SgAttribute to store annotations). Then, instead of using
declaredInStmt, you can just read off the attribute. --Beata