[PATCH] D94639: [DebugInfo][CodeView] Change in line tables only mode to emit type informationfor function scopes, rather than using the qualified name.

Amy Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 13 15:23:33 PST 2021


akhuang created this revision.
akhuang added reviewers: rnk, dblaikie.
Herald added a subscriber: hiraditya.
akhuang requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

In line-tables-only mode, we used to emit qualified function names
since the function name was the only thing differentiating different
functions.
If we switch to emitting forward declarations for the  types that
appear in function scopes, the total object file size becomes slightly smaller
and the display name also becomes more consistent.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94639

Files:
  clang/lib/CodeGen/CGDebugInfo.cpp
  clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp
  clang/test/CodeGenCXX/debug-info-codeview-scopes.cpp
  llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  llvm/test/DebugInfo/COFF/function-display-name.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94639.316525.patch
Type: text/x-patch
Size: 9824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210113/7603587c/attachment-0001.bin>


More information about the cfe-commits mailing list