[llvm-dev] Function start address

Muhui Jiang via llvm-dev llvm-dev at lists.llvm.org
Sun Jun 3 22:14:34 PDT 2018

Hi Paulr

I think I've already know the reason. I use the -save-temps to help me to
save the LLVM IR during the compiling time.

You know, there are four different kinds stages and every stage map to one
file for one binary. And they are


My LLVM Pass is running on *.preopt.bc so that I get 376 functions.
However, when I run the same pass on *.precodegen.bc. I get 266 functions,
which is the same number according to the symbol table. My mistake that I
didn't consider which bitcode file should I run. Thanks for your


2018-06-04 3:08 GMT+08:00 <paul.robinson at sony.com>:

> Hi Muhui,
> I tried to grep the "DW_TAG_subprogram" from the debug_info . However, I
> noticed that the number I found is still less than the whole functions I
> found with LLVM IR. Do you have any experiences? Many Thanks
> The only explanation that comes to mind, is that the functions are not in
> the final binary object file.  However, previously you said you believed
> they were present.  If that is the case, please provide us with an example
> source file and compiler command line, to help diagnose the behavior.
> Thanks,
> --paulr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180604/8720d253/attachment.html>

More information about the llvm-dev mailing list