Jlm
Loading...
Searching...
No Matches
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
8
9int
10main(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}
const JlcCommandLineOptions & ParseCommandLineArguments(int argc, const char *const *argv) override
int main(int argc, char **argv)
Definition jlc.cpp:10