File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,14 @@ void MaybePrintLinkerMessage(absl::Span<const Entity> entities,
7474 // Secondly, if we have an incomplete entity that does not have a
7575 // corresponding complete entity, then linking will be incomplete.
7676 if (complete_count > 1 && incomplete_count) {
77- stream << " error: multiple definitions for " << entities[0 ].name_prefix ()
78- << entities[ 0 ]. name () << entities[ 0 ]. name_suffix () << " \n " ;
77+ stream << " error: multiple definitions for " << entities[0 ].full_name ()
78+ << " \n " ;
7979 } else if (!complete_count && incomplete_count) {
8080#ifndef NDEBUG
8181 // TODO: Enable this in opt builds once the number of warnings is
8282 // more reasonable.
83- stream << " warning: no definition found for " << entities[0 ].name_prefix ()
84- << entities[ 0 ]. name () << entities[ 0 ]. name_suffix () << " \n " ;
83+ stream << " warning: no definition found for " << entities[0 ].full_name ()
84+ << " \n " ;
8585#else
8686 return ;
8787#endif // NDEBUG
@@ -91,7 +91,7 @@ void MaybePrintLinkerMessage(absl::Span<const Entity> entities,
9191
9292 for (const auto & entity : entities) {
9393 const auto & location = locations[entity.location_id ()];
94- stream << " " << location.path () << " :" << location.start_line () << " : "
94+ stream << " " << location.path () << " :" << location.start_line () << " - "
9595 << location.end_line ()
9696 << (entity.is_incomplete () ? " " : " [definition]" )
9797 << (entity.is_weak () ? " [weak]" : " " ) << " \n " ;
You can’t perform that action at this time.
0 commit comments