25static std::vector<llvm::cl::OptionEnumValue> GetFrontends()
27 std::vector<llvm::cl::OptionEnumValue> values;
29 values.emplace_back(registered->Name(), registered->Kind(), registered->Desc());
34 :
SubCommand(
"sym",
"Compile target-assembly into symbols"),
39 llvm::cl::desc(
"<langauge id>"),
40 llvm::cl::cat(GetCategory()),
46 llvm::cl::desc(
"<output file>"),
47 llvm::cl::cat(GetCategory()),
52 llvm::cl::desc(
"<language-specific args>..."),
53 llvm::cl::cat(GetCategory()),
63 if (registered->Kind() == Language.getValue())
64 return registered->Run(OutputFile.getValue(), Argv);
67 llvm::errs() <<
"No such language-id '" << Language.ValueStr <<
"'\n";
int Run() override
Runs a subcommand.
CompileSymbolSubCommand()
An abstraction class of llvm::cl::SubCommand
static const std::vector< FrontendAction * > & GetRegistered()
Gets all registered actions.
std::initializer_list< T > GetInitializerList(std::vector< T > vector)