]> granicus.if.org Git - clang/commit
DebugInfo: Unify & optimize the lazy addition of record types
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 20:49:17 +0000 (20:49 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 15 Aug 2013 20:49:17 +0000 (20:49 +0000)
commit278048971c8b2e153d305ee8917618c9bf38b1c3
tree651ec753496a247bf2e6db0b232fe872565cbd0a
parentc5cd1a712eb98852ae73f027414d06be85dafff6
DebugInfo: Unify & optimize the lazy addition of record types

Rather than going through the whole getOrCreateType machinery to
manifest a type, cut straight to the implementation because we know we
have to do work.

While the previous implementation was sufficient for the two cases
(completeness and required completeness) we have already (the general
machinery could inspect the type for those attributes & go down the full
definition path), a pending change (to emit info for types when we emit
their vtables) won't have that luxury & we'll need to force the creation
rather than relying on the general purpose routine.

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