[LLVMdev] Removing unused function definitions

Mattias Lundell capitrane at gmail.com
Fri Mar 19 16:04:02 PDT 2010


Hi,

I wonder if there is a pass in opt that removes unused function
definitions. I'm working on a llvm based compiler backend and when I
link the generated bc files with the runtime system and the standard
library, all functions from the standard library are in the linked bc
file, even unused ones. I've tried some different passes in "opt" but
the definitions are still there.

Regards
Mattias



More information about the llvm-dev mailing list