aboutsummaryrefslogtreecommitdiff
path: root/gcc/elna-diagnostic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/elna-diagnostic.cc')
-rw-r--r--gcc/elna-diagnostic.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/elna-diagnostic.cc b/gcc/elna-diagnostic.cc
index 162d6cb..fa32788 100644
--- a/gcc/elna-diagnostic.cc
+++ b/gcc/elna-diagnostic.cc
@@ -31,7 +31,7 @@ namespace elna::gcc
linemap_add(line_table, LC_LEAVE, 0, NULL, 0);
}
- location_t get_location(const frontend::position *position)
+ location_t get_location(const boot::position *position)
{
linemap_line_start(line_table, position->line, 0);
@@ -151,7 +151,7 @@ namespace elna::gcc
gcc_unreachable();
}
- void report_errors(const std::deque<std::unique_ptr<frontend::error>>& errors)
+ void report_errors(const std::deque<std::unique_ptr<boot::error>>& errors)
{
for (const auto& error : errors)
{
@@ -159,7 +159,7 @@ namespace elna::gcc
if (error->position.line != 0 || error->position.column != 0)
{
- gcc_location = elna::gcc::get_location(&error->position);
+ gcc_location = get_location(&error->position);
}
error_at(gcc_location, error->what().c_str());
}