OSDN Git Service

[DebugInfo][CodeView] Change in line tables only mode to emit type information
authorAmy Huang <akhuang@google.com>
Tue, 12 Jan 2021 00:37:29 +0000 (16:37 -0800)
committerAmy Huang <akhuang@google.com>
Fri, 15 Jan 2021 17:28:27 +0000 (09:28 -0800)
commit6227069bdce6b0c3c22f0a0c8f1aef705985125a
treea54496c11e2a83f31053b522ba86c9722fb92e2b
parentbc84f89c71ab62d510973f64f022bee31e53af96
[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
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-codeview-display-name.cpp
clang/test/CodeGenCXX/debug-info-codeview-scopes.cpp [new file with mode: 0644]