LILAC
Language to language Interop LAyer Compiler
|
An abstraction class of llvm::cl::SubCommand
More...
#include <subcommand.h>
Public Member Functions | |
SubCommand (const char *command, const char *desc) | |
Creates a sub-command with given name and description. | |
virtual int | Run ()=0 |
Runs a subcommand. | |
virtual | ~SubCommand ()=default |
operator llvm::cl::SubCommand & () | |
operator bool () const | |
Static Public Member Functions | |
static llvm::cl::OptionCategory & | GetCategory () |
Gets default category of all sub-commands registered by LILAC. | |
An abstraction class of llvm::cl::SubCommand
Definition at line 29 of file subcommand.h.
lilac::SubCommand::SubCommand | ( | const char * | command, |
const char * | desc ) |
Creates a sub-command with given name and description.
command | A name of the sub-command |
desc | A description of the sub-command |
Definition at line 24 of file subcommand.cxx.
|
virtualdefault |
|
static |
Gets default category of all sub-commands registered by LILAC.
Definition at line 39 of file subcommand.cxx.
lilac::SubCommand::operator bool | ( | ) | const |
Definition at line 34 of file subcommand.cxx.
lilac::SubCommand::operator llvm::cl::SubCommand & | ( | ) |
Definition at line 29 of file subcommand.cxx.
|
pure virtual |
Runs a subcommand.
Implemented in lilac::CompileSymbolSubCommand, and lilac::GenerateSubCommand.