[LLVMdev] Odd problem with command line options
jay.foad at antixlabs.com
Fri May 30 06:50:46 CDT 2008
> I'm linking a program (my ellsif driver) that basically brings in most
> of the LLVM stuff: bitcode reading, optimizations, linking, and target
> code generation.
> All of a sudden, I'm getting the following when I run:
> [~/elsa/ellsif] dev% ./ellsif -v test/ofmt.i test/sieve.i -time-actions
> <premain>: CommandLine Error: Argument 'machine-licm' defined more than
> ellsif: CommandLine Error: Argument 'machine-licm' defined more than once!
I recently had a similar problem when I wrote a new pass and built it into
opt. This error message is confusing because the code that prints it, in
GetOptionInfo() in lib/Support/CommandLine.cpp:
cerr << ProgramName << ": CommandLine Error: Argument '"
<< OptionNames << "' defined more than once!\n";
should be printing OptionNames[i], not OptionNames.
(Once I had fixed this, it was easy to see what I had done wrong in the pass
More information about the LLVMdev