Samuel Crow
2010-Jan-12 18:14 UTC
[LLVMdev] Extra command line options from the LLVM CommandLine parser
Hello everybody, We've just got our command-line driven program to compile after having converted our command-line option parser to use LLVM's commandline class. The problem we've run into is that we get the following for llvmpeg --help : USAGE: llvmpeg [options] <input file> OPTIONS: -I=<path> - Specify an additional include path -help - Display available options (--help-hidden for more) -o=<filename> - Specify output filename -stats - Enable statistics output from program -time-passes - Time each pass, printing elapsed time for each on exit -verbose - Print informational messages -verify-dom-info - Verify dominator info (time consuming) -version - Display the version of this program The problem is that we never asked for the -stats, -time-passes, and -verify-dom-info options. We're using LLVM 2.6. Has this been fixed in trunk? Thanks, --Sam
Chris Lattner
2010-Jan-12 22:10 UTC
[LLVMdev] Extra command line options from the LLVM CommandLine parser
On Jan 12, 2010, at 10:14 AM, Samuel Crow wrote:> Hello everybody, > > We've just got our command-line driven program to compile after > having converted our command-line option parser to use LLVM's > commandline class. The problem we've run into is that we get the > following for llvmpeg --help :You'll get these if you link in the LLVM pass manager, Statistics.cpp or other LLVM files that use cl::opt. There isn't a really great way to define multiple different namespaces for command line options to live in at this point. -Chris> > USAGE: llvmpeg [options] <input file> > > OPTIONS: > -I=<path> - Specify an additional include path > -help - Display available options (--help-hidden for more) > -o=<filename> - Specify output filename > -stats - Enable statistics output from program > -time-passes - Time each pass, printing elapsed time for each > on exit > -verbose - Print informational messages > -verify-dom-info - Verify dominator info (time consuming) > -version - Display the version of this program > > The problem is that we never asked for the -stats, -time-passes, and > -verify-dom-info options. We're using LLVM 2.6. Has this been > fixed in trunk? > > Thanks, > > --Sam > > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev