2 //**************************************************************************/
7 // Options for the llc compiler.
10 // 7/15/01 - Vikram Adve - Created
12 //**************************************************************************/
14 #ifndef LLVM_LLC_LLCOPTIONS_H
15 #define LLVM_LLC_LLCOPTIONS_H
17 #include "llvm/Support/ProgramOptions.h"
18 #include "llvm/Support/ProgramOption.h"
20 const char* const HELP_OPT = "help";
21 const char* const DEBUG_OPT = "d";
22 const char* const QUIET_OPT = "q";
23 const char* const DEBUG_INSTR_SELECT_OPT= "debug_select";
24 const char* const OUTFILENAME_OPT = "o";
27 //---------------------------------------------------------------------------
29 //---------------------------------------------------------------------------
31 class LLCOptions : public ProgramOptions {
33 /*ctor*/ LLCOptions (int _argc,
36 /*dtor*/ virtual ~LLCOptions ();
38 const string& getInputFileName() const { return inputFileName; }
40 const string& getOutputFileName() const { return outputFileName; }
44 //--------------------------------------------------------------------
45 // Initialize for all our compiler options (called by constructors).
46 //--------------------------------------------------------------------
47 void InitializeOptions();
49 //--------------------------------------------------------------------
50 // Make sure the parse went ok.
51 //--------------------------------------------------------------------
54 //--------------------------------------------------------------------
55 // Parse arguments after all options are consumed.
56 // This is called after a successful ParseArgs.
57 //--------------------------------------------------------------------
58 virtual void ParseExtraArgs();
60 //--------------------------------------------------------------------
61 // Print message describing which arguments and options are
62 // required, optional, mutually exclusive, ...
63 // called in ProgramOptions::Usage() method
64 //--------------------------------------------------------------------
65 virtual void PrintUsage(ostream& stream) const;
69 string outputFileName;
72 //**************************************************************************/