[all-commits] [llvm/llvm-project] ef4cfd: Pass -gcodeview-ghash when using clang-cl and lld-...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Thu May 27 21:02:48 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef4cfd83223890fdbd69fbc9899089365f4588b4
      https://github.com/llvm/llvm-project/commit/ef4cfd83223890fdbd69fbc9899089365f4588b4
  Author: Reid Kleckner <rnk at google.com>
  Date:   2021-05-27 (Thu, 27 May 2021)

  Changed paths:
    M llvm/cmake/modules/HandleLLVMOptions.cmake

  Log Message:
  -----------
  Pass -gcodeview-ghash when using clang-cl and lld-link

This precomputes some hashes that LLD uses for type merging to speed up
linking when PDBs are enabled. Only do this if any kind of /DEBUG flag
is passed to the linker. -gcodeview-ghash is orthogonal to /Z7, -g, -g1,
or -gmlt, so it is safe to set it independently from those flags. It
will not increase debug info emission.

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




More information about the All-commits mailing list