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)
commitb2e86eb64acdca438466d9423a3a6e635e71e078
treeb44e7cff5bdd01231ac1a35bb826cebfbdabcc16
parent0a41d9ae7f0b70c5a613f72f119fa1c30fd6353a
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.

llvm-svn: 188486
clang/lib/CodeGen/CGDebugInfo.cpp
clang/lib/CodeGen/CGDebugInfo.h
clang/lib/CodeGen/CodeGenTypes.cpp
clang/lib/CodeGen/ModuleBuilder.cpp