[all-commits] [llvm/llvm-project] 9791b5: [C++20 Modules] Don't create global module fragmen...

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Wed Dec 8 21:56:28 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9791b589516b644a6273607b46a9c6661993d667
      https://github.com/llvm/llvm-project/commit/9791b589516b644a6273607b46a9c6661993d667
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2021-12-09 (Thu, 09 Dec 2021)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDeclCXX.cpp
    A clang/test/CXX/module/module.unit/p7/Inputs/h7.h
    A clang/test/CXX/module/module.unit/p7/t7.cpp

  Log Message:
  -----------
  [C++20 Modules] Don't create global module fragment for extern linkage declaration in GMF already

Previously we would create global module fragment for extern linkage
declaration which is alreday in global module fragment. However, it is
clearly redundant to do so. This patch would check if the extern linkage
declaration are already in GMF before we create a GMF for it.




More information about the All-commits mailing list