[LLVMdev] how to access the identifier table
Dmitri Gribenko
gribozavr at gmail.com
Mon Feb 18 16:49:07 PST 2013
On Tuesday, February 19, 2013, Niko Zarzani wrote:
> Hi, I am new with the llvm infrastructure and I am trying to write a Pass that prints the mapping between IR variable names and the names of the variables in the source code.
>
> It is not possible to easily do this. Names for values in LLVM code are
arbitrary. The best one can do is to parse the debug info.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130219/1a3c0766/attachment.html>
More information about the llvm-dev
mailing list