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<br><br><div class="gmail_quote">2009/10/31 aparna kotha <span dir="ltr"><<a href="mailto:kotha.aparna@gmail.com">kotha.aparna@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This is the name of a structure in the source code. <br><br><br><div class="gmail_quote">2009/10/30 Török Edwin <span dir="ltr"><<a href="mailto:edwintorok@gmail.com" target="_blank">edwintorok@gmail.com</a>></span><div class="im">
<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><div></div><div>On 2009-10-30 19:41, aparna kotha wrote:<br>
> We are trying to compile a .c file using llvm-gcc --emit-llvm .<br>
><br>
> The produced output has a variable name different from its name in the<br>
> .c file. We have tried it on different llvm-gcc versions and different<br>
> optimization levels.<br>
><br>
> Is there any reason that this happens.<br>
<br>
</div></div>Is it a static variable inside a function?<br>
<br>
Also I don't think there is any guaranteee about LLVM variable name<br>
mapping, you should look at llvm.dbg.variable to find out the original<br>
variable name.<br>
<br>
Best regards,<br>
<font color="#888888">--Edwin<br>
</font></blockquote></div></div><br>
<br>_______________________________________________<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" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>