Jlm
tools
jlc
jlc.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2018 Nico Reißmann <nico.reissmann@gmail.com>
3
* See COPYING for terms of redistribution.
4
*/
5
6
#include <
jlm/tooling/CommandGraphGenerator.hpp
>
7
#include <
jlm/tooling/CommandLine.hpp
>
8
9
int
10
main
(
int
argc,
char
** argv)
11
{
12
using namespace
jlm::tooling
;
13
14
JlcCommandLineParser
commandLineParser;
15
const
JlcCommandLineOptions
* commandLineOptions =
nullptr
;
16
try
17
{
18
commandLineOptions = &commandLineParser.
ParseCommandLineArguments
(argc, argv);
19
}
20
catch
(
const
CommandLineParser::Exception
& e)
21
{
22
std::cerr << e.what() << std::endl;
23
exit(EXIT_FAILURE);
24
}
25
26
auto
commandGraph =
JlcCommandGraphGenerator::Generate
(*commandLineOptions);
27
commandGraph->Run();
28
29
return
0;
30
}
CommandGraphGenerator.hpp
CommandLine.hpp
jlm::tooling::CommandLineParser::Exception
Definition:
CommandLine.hpp:585
jlm::tooling::JlcCommandGraphGenerator::Generate
static std::unique_ptr< CommandGraph > Generate(const JlcCommandLineOptions &commandLineOptions)
Definition:
CommandGraphGenerator.hpp:56
jlm::tooling::JlcCommandLineOptions
Definition:
CommandLine.hpp:219
jlm::tooling::JlcCommandLineParser
Definition:
CommandLine.hpp:606
jlm::tooling::JlcCommandLineParser::ParseCommandLineArguments
const JlcCommandLineOptions & ParseCommandLineArguments(int argc, const char *const *argv) override
Definition:
CommandLine.cpp:288
main
int main(int argc, char **argv)
Definition:
jlc.cpp:10
jlm::tooling
Definition:
Command.cpp:53
Generated by
1.9.1