Skip type units/type uniquing when we know we're only emitting the type once (vtable...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 25 Apr 2019 20:05:47 +0000 (20:05 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 25 Apr 2019 20:05:47 +0000 (20:05 +0000)
commitf0d66559ea345db4b2116cae044aaf3399d7e829
tree7c7ad761257af5023d0de8af9608872faf084618
parent3775794812e582769e2ed1b53c00650a6b21387c
Skip type units/type uniquing when we know we're only emitting the type once (vtable-based emission when triggered by a strong vtable, with -fno-standalone-debug)

(this would regress size without a corresponding LLVM change that avoids
putting other user defined types inside type units when they aren't in
their own type units - instead emitting declarations inside the type
unit and a definition in the primary CU)

Reviewers: aprantl

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

llvm-svn: 359235
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-class.cpp
clang/test/Modules/ExtDebugInfo.cpp
clang/test/Modules/ModuleDebugInfo.cpp