Re: [CIL users] Patch to help more precise #line information

2011-10-28 Thread Gabriel Kerneis
On Thu, Oct 27, 2011 at 02:02:16PM -0500, Piramanayagam Arumuga Nainar wrote: > I'm submitting this patch so it can make it in the new release. > Having local changes to the CIL tree (albeit 1 line) is still a > headache :) Agreed. Thanks for the patch, -- Gabriel --

[CIL users] Patch to help more precise #line information

2011-10-27 Thread Piramanayagam Arumuga Nainar
For a down-stream analysis that reads CIL instrumented files, I need #line pragmas for local variables. I can do that by redefining 'pVDecl' in my CIL printer. But, when printing a function definition, defaultCilPrinterClass doesn't add a new line after the opening curly brace. So, it prints