[PATCH] D54370: [codeview] Expose -gcodeview-ghash for global type hashing

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 9 17:19:36 PST 2018


rnk created this revision.
rnk added reviewers: zturner, hans, thakis, takuto.ikuta.
Herald added subscribers: JDevlieghere, hiraditya, aprantl.

Experience has shown that the functionality is useful. It makes linking
optimized clang with debug info for me a lot faster, 20s to 13s. The
type merging phase of PDB writing goes from 10s to 3s.

This removes the LLVM cl::opt and replaces it with a metadata flag.

After this change, users can do the following to use ghash:

- add -gcodeview-ghash to compiler flags
- replace /DEBUG with /DEBUG:GHASH in linker flags


https://reviews.llvm.org/D54370

Files:
  clang/include/clang/Driver/Options.td
  clang/include/clang/Frontend/CodeGenOptions.def
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/CodeGenCXX/debug-info-ms-abi.cpp
  clang/test/Driver/gcodeview-ghash.c
  llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.h
  llvm/test/DebugInfo/COFF/global-type-hashes.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54370.173479.patch
Type: text/x-patch
Size: 8710 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181110/390a734e/attachment.bin>


More information about the llvm-commits mailing list