[Prev][Next][Index]
Re: Problems with SgStatement::copy()
- To: Diego Novillo <diego@cs.ualberta.ca>
- Cc: sage-bugs@cica.indiana.edu
- Subject: Re: Problems with SgStatement::copy()
- In-Reply-To: Your message of "Tue, 09 Aug 1994 13:49:56 MDT."
<Pine.3.89.9408091330.A27481-0100000@sundance.cs.ualberta.ca>
- Date: Tue, 09 Aug 1994 15:58:29 -0500
- From: Andrew Mauer <mauer@mcs.anl.gov>
I had a pause to look at your problem. I am quite sure you can get a
copy of the line number by editing low_level.c.
1. Find the duplicateStmts function (line 2358 in my copy).
2. Find the area that looks like the following (near the start).
for (i = 0; i < lenght; i++)
{
copie = (PTR_BFND) newNode (BIF_CODE (temp));
BIF_SYMB (copie) = BIF_SYMB (temp);
BIF_LL1 (copie) = copyLlNode(BIF_LL1 (temp));
BIF_LL2 (copie) = copyLlNode(BIF_LL2 (temp));
BIF_LL3 (copie) = copyLlNode(BIF_LL3 (temp));
3. Just after that, insert:
BIF_LINE(copie) = BIF_LINE(temp);
BIF_LOCAL_LINE(copie) = BIF_LOCAL_LINE(temp);
4. Recompile libs and relink.
No guarantees.
/Andrew/
Reference(s):