[LLVMdev] How can I know which functions aren't used within one module?
rengolin at systemcall.org
Mon Aug 30 02:20:21 PDT 2010
On 29 August 2010 19:35, Yuri <yuri at rawbw.com> wrote:
> Is there a way to make llvm to print uses of functions within the
> current module?
I was waiting for someone with more knowledge to answer that, but I
guess you just need to write a pass that counts the number of 'call's
to each function in each other function and global declarations, and
maybe add uses to Functions.
More information about the llvm-dev