Works for me:
$ opt -analyze hello.ll -o hello.bc -S
$ file hello.*
hello.bc: empty
hello.ll: ASCII text
Maybe you have too old opt?
> I also try 'opt --help'; but the option is not listed.
Try opt --help-hidden.
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
I've changed opt so that the -S option is no longer hidden.
Ciao,
Duncan.