[LLVMdev] understanding the opt tool

Duncan Sands baldrick at free.fr
Sat Apr 17 00:00:00 PDT 2010


Hi Kalyan,

> opt -strip-dead-prototypes -f <filename.bc> filename2.bc

you have to specify the list of passes to run.  -strip-dead-prototypes
only removes unused declarations.  If there are none, it will do nothing.
Try:
   opt -std-compile-opts -f <filename.bc> filename2.bc

Ciao,

Duncan.



More information about the llvm-dev mailing list