[all-commits] [llvm/llvm-project] cbc9d2: make -fmodules-codegen and -fmodules-debuginfo wor...

Luboš Luňák via All-commits all-commits at lists.llvm.org
Tue Jan 14 15:01:31 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cbc9d22e49b434b6ceb2eb94b67079d02e0a7b74
      https://github.com/llvm/llvm-project/commit/cbc9d22e49b434b6ceb2eb94b67079d02e0a7b74
  Author: Luboš Luňák <l.lunak at centrum.cz>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M clang/lib/Serialization/ASTReader.cpp
    M clang/lib/Serialization/ASTReaderDecl.cpp
    M clang/lib/Serialization/ASTWriter.cpp
    M clang/lib/Serialization/ASTWriterDecl.cpp
    M clang/test/Modules/Inputs/codegen-flags/foo.h
    A clang/test/PCH/codegen.cpp

  Log Message:
  -----------
  make -fmodules-codegen and -fmodules-debuginfo work also with PCHs

Allow to build PCH's (with -building-pch-with-obj and the extra .o file)
with -fmodules-codegen -fmodules-debuginfo to allow emitting shared code
into the extra .o file, similarly to how it works with modules. A bit of
a misnomer, but the underlying functionality is the same. This saves up
to 20% of build time here.

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




More information about the All-commits mailing list