[LLVMdev] llvm-gcc

Paul Davey plmdvy at gmail.com
Fri Oct 30 17:52:06 PDT 2009


struct names get "struct." prepended to the name to give it the struct
namespace. struct names are in a different namespace to typedefs and
variable names in C

2009/10/31 aparna kotha <kotha.aparna at gmail.com>

> This is the name of a structure in the source code.
>
>
> 2009/10/30 Török Edwin <edwintorok at gmail.com>
>
> On 2009-10-30 19:41, aparna kotha wrote:
>> > We are trying to compile a .c file using llvm-gcc --emit-llvm .
>> >
>> > The produced output has a variable name different from its name in the
>> > .c file. We have tried it on different llvm-gcc versions and different
>> > optimization levels.
>> >
>> > Is there any reason that this happens.
>>
>> Is it a static variable inside a function?
>>
>> Also I don't think there is any guaranteee about LLVM variable name
>> mapping, you should look at llvm.dbg.variable to find out the original
>> variable name.
>>
>> Best regards,
>> --Edwin
>>
>
>
> _______________________________________________
> 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/20091031/70e5afb2/attachment.html>


More information about the llvm-dev mailing list