diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-03 21:35:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-03 21:35:43 +0200 |
commit | bbc39ffe31c67506b4c03fc56fa3adcb925b6325 (patch) | |
tree | cdc3e2bb6f66edab684ee184a28c35727246f448 /odb/plugin.cxx | |
parent | f0bbc17aeed1b636782a4b92e8191d90f310d0a2 (diff) |
Remove gratuitous classes
In the process also get rid of global class processor which conflicts
with enum processor on MIPS.
Diffstat (limited to 'odb/plugin.cxx')
-rw-r--r-- | odb/plugin.cxx | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/odb/plugin.cxx b/odb/plugin.cxx index e32f225..51f0cb1 100644 --- a/odb/plugin.cxx +++ b/odb/plugin.cxx @@ -199,27 +199,23 @@ gate_callback (void*, void*) parser p (*options_, loc_pragmas_, ns_loc_pragmas_, decl_pragmas_); auto_ptr<unit> u (p.parse (global_namespace, file_)); - features f; // Validate, pass 1. // - validator v; - v.validate (*options_, f, *u, file_, 1); + validate (*options_, f, *u, file_, 1); // Process. // - processor pr; - pr.process (*options_, f, *u, file_); + process (*options_, f, *u, file_); // Validate, pass 2. // - v.validate (*options_, f, *u, file_, 2); + validate (*options_, f, *u, file_, 2); // Generate. // - generator g; - g.generate (*options_, f, *u, file_, inputs_); + generate (*options_, f, *u, file_, inputs_); } catch (cutl::re::format const& e) { @@ -239,19 +235,19 @@ gate_callback (void*, void*) // r = 1; } - catch (validator::failed const&) + catch (validator_failed const&) { // Diagnostics has aready been issued. // r = 1; } - catch (processor::failed const&) + catch (processor_failed const&) { // Diagnostics has aready been issued. // r = 1; } - catch (generator::failed const&) + catch (generator_failed const&) { // Diagnostics has aready been issued. // |