Skip to content

Commit

Permalink
c++: Use better module partition naming
Browse files Browse the repository at this point in the history
It turns out that 'implementation partition' is not a term used in the
std, and is confusing to users.  Let's use the better term 'internal
partition'.  While there, adjust header unit naming.

	gcc/cp/
	* module.cc (module_state::write_readme): Use less confusing
	importable unit names.
  • Loading branch information
urnathan committed Jun 15, 2022
1 parent dc8071d commit 052d895
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gcc/cp/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13962,11 +13962,11 @@ module_state::write_readme (elf_out *to, cpp_reader *reader, const char *dialect

readme.begin (false);

readme.printf ("GNU C++ %smodule%s%s",
is_header () ? "header " : is_partition () ? "" : "primary ",
is_header () ? ""
: is_interface () ? " interface" : " implementation",
is_partition () ? " partition" : "");
readme.printf ("GNU C++ %s",
is_header () ? "header unit"
: !is_partition () ? "primary interface"
: is_interface () ? "interface partition"
: "internal partition");

/* Compiler's version. */
readme.printf ("compiler: %s", version_string);
Expand Down

0 comments on commit 052d895

Please sign in to comment.