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. Aparna -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091030/0c372020/attachment.html>
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
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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091030/c122ca86/attachment.html>