LILAC
Language to language Interop LAyer Compiler
Loading...
Searching...
No Matches
generatesubcommand.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2024 Yeong-won Seo
3
*
4
* This file is part of LILAC.
5
*
6
* LILAC is free software: you can redistribute it and/or modify it under
7
* the terms of the GNU General Public License as published by the Free
8
* Software Foundation, either version 3, or (at your option) any later
9
* version.
10
*
11
* LILAC is distributed in the hope that it will be useful, but WITHOUT ANY
12
* WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <https://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include "
subcommand.h
"
23
#include "
shared/backend.h
"
24
25
namespace
lilac
26
{
30
class
GenerateSubCommand
final :
public
SubCommand
31
{
32
llvm::cl::opt<std::string> OutputPath;
33
llvm::cl::opt<shared::BackendKind> Language;
34
llvm::cl::opt<std::string> SymbolFile;
35
llvm::cl::opt<std::string> ReferenceName;
36
llvm::cl::list<std::string> Argv;
37
38
public
:
39
GenerateSubCommand
();
40
41
int
Run
()
override
;
42
};
43
}
backend.h
lilac::GenerateSubCommand
A sub-command that generates bindings from symbols.
Definition
generatesubcommand.h:31
lilac::GenerateSubCommand::GenerateSubCommand
GenerateSubCommand()
Definition
generatesubcommand.cxx:32
lilac::GenerateSubCommand::Run
int Run() override
Runs a subcommand.
Definition
generatesubcommand.cxx:75
lilac::SubCommand
An abstraction class of llvm::cl::SubCommand
Definition
subcommand.h:30
lilac
Definition
compilesymbolsubcommand.h:26
subcommand.h
lilac
generatesubcommand.h
Generated on Sat Oct 5 2024 07:56:20 for LILAC by
1.12.0