30static void printException(
const std::exception &e,
int indent = 0)
32 std::cerr << std::string(indent,
' ') << e.what() << std::endl;
35 std::rethrow_if_nested(e);
37 catch (
const std::exception &e)
39 printException(e, indent + 2);
43int main(
int argc,
const char *argv[])
45 int exit_code = EXIT_FAILURE;
62 exit_code = EXIT_SUCCESS;
67 std::cerr <<
"use --help for more information" << std::endl;
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