[LLVMdev] debug information for functions
Devang Patel
devang.patel at gmail.com
Mon Jun 8 10:32:48 PDT 2009
On Mon, Jun 8, 2009 at 3:25 AM, <Vasudev.Negi at microchip.com> wrote:
>
> I get .bc files for foo.c and foo.bc through clang. Now I run llvm-ld
> with -disable-opt for foo.bc and goo.bc. In the resulting .bc files, one
> of the two functions fun, is renamed to fun<number>. There are two
> llvm.dbg.subprogram descriptors created for the two fun functions. Both
> have name foo . So there is no way to know which descriptor represents
> which function. I am trying to get this information in assembly printer.
What is the use of this info ? The descriptor includes enough location
info (thru func.start) and the display name for static functions.
-
Devang
More information about the llvm-dev
mailing list