[LLVMbugs] [Bug 20129] opt and llc hang trying to parse unspecified string options
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 25 16:22:00 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20129
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rnk at google.com
Resolution|--- |WORKSFORME
--- Comment #1 from Reid Kleckner <rnk at google.com> ---
opt and llc are designed, like most unix tools, to accept input from stdin if
you don't specify an input file. Both of these options consume a value, and in
this case test.ll is consumed by the option.
Clang's -mllvm is an escaping mechanism, it doesn't know anything about the
structure of LLVM options. You have to use it like so:
$ clang -mllvm -extract-blocks-file -mllvm test.ll
clang.exe: error: no input files
In your clang command line, LLVM's option parsing is seeing the command line
'-extract-blocks-file', and expecting a value where there is none.
Does that answer your question?
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140625/e0cea114/attachment.html>
More information about the llvm-bugs
mailing list