[all-commits] [llvm/llvm-project] 622706: [DebugInfo][CodeView] Change in line tables only m...

Amy Huang via All-commits all-commits at lists.llvm.org
Fri Jan 15 09:29:02 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6227069bdce6b0c3c22f0a0c8f1aef705985125a
      https://github.com/llvm/llvm-project/commit/6227069bdce6b0c3c22f0a0c8f1aef705985125a
  Author: Amy Huang <akhuang at google.com>
  Date:   2021-01-15 (Fri, 15 Jan 2021)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp
    M clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp
    A clang/test/CodeGenCXX/debug-info-codeview-scopes.cpp

  Log Message:
  -----------
  [DebugInfo][CodeView] Change in line tables only mode to emit type information
for function scopes, rather than using the qualified name.

In line-tables-only mode, we used to emit qualified names as the display name for functions when using CodeView.
This patch changes to emitting the parent scopes instead, with forward declarations for class types.
The total object file size ends up being slightly smaller than if we use the full qualified names.

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




More information about the All-commits mailing list