]> granicus.if.org Git - clang/commit
CGDebugInfo: Factor out a getOrCreateStandaloneType() method.
authorAdrian Prantl <aprantl@apple.com>
Thu, 27 Aug 2015 21:21:19 +0000 (21:21 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 27 Aug 2015 21:21:19 +0000 (21:21 +0000)
commit0a32cc28cdf76ca93e3d2c482532729755585702
treee0a113705a0ac909f70af9f0c03fc38b8d5449d8
parent7290f58043f0cc0743dee1386624be51f4efd815
CGDebugInfo: Factor out a getOrCreateStandaloneType() method.

Usually debug info is created on the fly while during codegen.
With this API it becomes possible to create standalone debug info
for types that are not referenced by any code, such as emitting debug info
for a clang module or for implementing something like -gfull.
Because on-the-fly debug info generation may still insert retained types
on top of them, all RetainedTypes are uniqued in CGDebugInfo::finalize().

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246210 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h