aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2022-06-10 11:57:38 -0700
committerNathan Sidwell <nathan@acm.org>2022-06-15 08:02:37 -0700
commit052d89537a4c09e1e1437042e2d1ea215656325f (patch)
treeb66e4722ec4c4d6cd7ecbabf79b759f6ca71d465
parentdc8071da0e89eab4935751f3b16745c95cbc0d30 (diff)
downloadgcc-052d89537a4c09e1e1437042e2d1ea215656325f.zip
gcc-052d89537a4c09e1e1437042e2d1ea215656325f.tar.gz
gcc-052d89537a4c09e1e1437042e2d1ea215656325f.tar.bz2
c++: Use better module partition naming
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.
-rw-r--r--gcc/cp/module.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index 5566c49..b3fbd46 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -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);