#include <iostream>
#include <vector>
#include "support/CommandLine.h"
#include "pass/PassException.h"
#include "Driver.h"
Go to the source code of this file.
|
int | main (int argc, const char *argv[]) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
const char * |
argv[] |
|
) |
| |
Definition at line 43 of file main.cpp.
44{
45 int exit_code = EXIT_FAILURE;
46
47 try
48 {
49
51
52
53
54
55
56
57
60
61
62 exit_code = EXIT_SUCCESS;
63 }
65 {
66 printException(e);
67 std::cerr << "use --help for more information" << std::endl;
68 }
70 {
71 printException(e);
72 }
73
74 return exit_code;
75}
exceptions description class for compiler driver
Compiler Driver manages the whole pipeline compilation process.
objects of this class are to be thrown from Passes if errors are occurred
static CommandLine * getParser()
singleton method
void parseCommandLine(int argc, const char **argv, bool check_nonoptional=true)
parse command line option
References nnc::cli::CommandLine::getParser(), and nnc::cli::CommandLine::parseCommandLine().