Options in OPT

Hello,

There is an option that I don’t know how to used it.

__**-S**__
Write output in LLVM intermediate language (instead of bitcode).

The option appears in the documentation, but I try to use it… I get the next message:

~/test$ opt -analyze hello.ll -o hello.bc -S
opt: Unknown command line argument ‘-S’. Try: ‘opt --help’

I also try ‘opt --help’; but the option is not listed.

I am using wrong the -S option, or there is something else.

Thanks in advance,

Juan Carlos Martinez Santos <juanc.martinez.santos@gmail.com> writes:

~/test$ opt -analyze hello.ll -o hello.bc -S
opt: Unknown command line argument '-S'. Try: 'opt --help'

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.

Hi Juan Carlos,

It looks to me like you’re trying to read in LLVM Assembly and output bitcode. That is the opposite of what -S is supposed to be for. I’m not sure why it isn’t recoginizing the -S option but it looks like there’s more wrong than what you’re reporting.

–Sam

I also try 'opt --help'; but the option is not listed.

Try opt --help-hidden.

I've changed opt so that the -S option is no longer hidden.

Ciao,

Duncan.