[LLVMdev] Inlining functions

Gabriel Quadros gquadrossilva at gmail.com
Thu Oct 20 10:48:16 PDT 2011


Dear LLVMers,

    I am trying to use your inline pass, and I would like to know if it is
possible to remove a function from the bitcode file once it is inlined.
Basically, I try:

$> opt -inline file2.bc > file2.in.bc

    and I see that all the functions have been inlined into the main
procedure, inside file2.in.bc. However, the inlined function is still in the
bitcode, even though it is unreachable from main. Is there a way to remove
this unreachable function from the bitcode file?

thank you very much,

Gabriel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111020/def23d05/attachment.html>


More information about the llvm-dev mailing list