[LLVMdev] Local variable information in scope
Devang Patel
dpatel at apple.com
Wed Oct 12 09:22:40 PDT 2011
On Oct 12, 2011, at 3:14 AM, Pankaj Gode wrote:
> Hi all,
>
> Using "CodeGen/LexicalScopes" pass, I could collect scope information i.e. start and end line numbers.
>
> I also want to collect information of variables within the scope.
>
> For the below example:
>
> int global;
> int func( int t)
> {
> //scope 1
> {
> int a;
> ....
> }
> return x;
> }
>
> 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.
>
> Regards,
> Pankaj
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111012/10f7f6e3/attachment.html>
More information about the llvm-dev
mailing list