<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 12, 2011, at 3:14 AM, Pankaj Gode wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto">Hi all,</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Using "CodeGen/LexicalScopes" pass, I could collect scope information i.e. start and end line numbers.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">I also want to collect information of variables within the scope. </div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">For the below example:</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">int global;</div>
<div style="RIGHT: auto">int func( int t)</div>
<div style="RIGHT: auto">{ </div>
<div style="RIGHT: auto"> //scope 1</div>
<div style="RIGHT: auto"> { </div>
<div style="RIGHT: auto"> int a;</div>
<div style="RIGHT: auto"> ....</div>
<div style="RIGHT: auto"> } </div>
<div style="RIGHT: auto"> return x;</div>
<div style="RIGHT: auto">} <var id="yiv1358224140yui-ie-cursor"></var></div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto"><var id="yui-ie-cursor"></var>For "scope 1", I should be able to collect that "a" is a local variable in scope1 and should also be able to identify whether "a" is static or non-static.</div>
<div style="RIGHT: auto"> </div>
<div style="RIGHT: auto">Regards,<br>Pankaj</div></div></div>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></body></html>