[all-commits] [llvm/llvm-project] a1dcfb: [clang] Module global init mangling

Nathan Sidwell via All-commits all-commits at lists.llvm.org
Mon May 23 09:03:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a1dcfb75ea8c31dd39edb6bdab6f54cde81cad85
      https://github.com/llvm/llvm-project/commit/a1dcfb75ea8c31dd39edb6bdab6f54cde81cad85
  Author: Nathan Sidwell <nathan at acm.org>
  Date:   2022-05-23 (Mon, 23 May 2022)

  Changed paths:
    M clang/include/clang/AST/Mangle.h
    M clang/lib/AST/ItaniumMangle.cpp

  Log Message:
  -----------
  [clang] Module global init mangling

C++20 modules require emission of an initializer function, which is
called by importers of the module.  This implements the mangling for
that function.  It is the one place the ABI exposes partition names in
symbols -- but fortunately only needed by other TUs of that same module.

Reviewed By: bruno

Differential Revision: https://reviews.llvm.org/D122741




More information about the All-commits mailing list