Jlm
tools
jlm-opt
jlm-opt.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Nico Reißmann <nico.reissmann@gmail.com>
3
* See COPYING for terms of redistribution.
4
*/
5
6
#include <
jlm/tooling/Command.hpp
>
7
8
int
9
main
(
int
argc,
char
** argv)
10
{
11
auto
& commandLineOptions =
jlm::tooling::JlmOptCommandLineParser::Parse
(argc, argv);
12
13
try
14
{
15
jlm::tooling::JlmOptCommand
command(argv[0], commandLineOptions);
16
command.
Run
();
17
}
18
catch
(
jlm::util::Error
& e)
19
{
20
std::cerr << e.what();
21
exit(EXIT_FAILURE);
22
}
23
24
return
0;
25
}
Command.hpp
jlm::tooling::JlmOptCommandLineParser::Parse
static const JlmOptCommandLineOptions & Parse(int argc, const char *const *argv)
Definition:
CommandLine.cpp:952
jlm::tooling::JlmOptCommand
Definition:
Command.hpp:337
jlm::tooling::JlmOptCommand::Run
void Run() const override
Definition:
Command.cpp:346
jlm::util::Error
Definition:
common.hpp:57
main
int main(int argc, char **argv)
Definition:
jlm-opt.cpp:9
Generated by
1.9.1