diff options
Diffstat (limited to 'boot/dependency.cc')
| -rw-r--r-- | boot/dependency.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/boot/dependency.cc b/boot/dependency.cc index 63d3952..a44b1f5 100644 --- a/boot/dependency.cc +++ b/boot/dependency.cc @@ -17,13 +17,10 @@ along with GCC; see the file COPYING3. If not see #include "elna/boot/dependency.h" -#include <fstream> -#include <sstream> -#include <cstring> - #include "elna/boot/driver.h" #include "elna/boot/name_analysis.h" #include "elna/boot/type_check.h" +#include "elna/boot/validation.h" #include "parser.hh" namespace elna::boot @@ -73,12 +70,12 @@ namespace elna::boot { return std::move(type_analyzer.errors()); } - constant_folder folder(bag, target); - tree->accept(&folder); + validation_visitor validator(bag, target); + tree->accept(&validator); - if (folder.has_errors()) + if (validator.has_errors()) { - return std::move(folder.errors()); + return std::move(validator.errors()); } return error_list{}; } |
