[LLVMdev] Options in OPT

52 views
Skip to first unread message

Juan Carlos Martinez Santos

unread,
Oct 12, 2009, 12:59:53 PM10/12/09
to LLVM Developers Mailing List
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

Timo Juhani Lindfors

unread,
Oct 12, 2009, 1:55:39 PM10/12/09
to Juan Carlos Martinez Santos, LLVM Developers Mailing List
Juan Carlos Martinez Santos <juanc.mart...@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.

_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Samuel Crow

unread,
Oct 12, 2009, 2:13:23 PM10/12/09
to Juan Carlos Martinez Santos, LLVM Developers Mailing List
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

Duncan Sands

unread,
Oct 14, 2009, 4:03:05 PM10/14/09
to Timo Juhani Lindfors, LLVM Developers Mailing List
>> 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.

Reply all
Reply to author
Forward
0 new messages