DebugInfo: Allow the addition of other (such as static data) members to a record type after construction

Plus a type cleanup & minor fix to enumerate members of declarations.

llvm-svn: 188577
This commit is contained in:
David Blaikie
2013-08-16 20:42:14 +00:00
parent 9eddbbd563
commit d4e106e39d
5 changed files with 13 additions and 13 deletions

View File

@@ -844,7 +844,7 @@ DIDescriptor DIBuilder::createUnspecifiedParameter() {
/// createForwardDecl - Create a temporary forward-declared type that
/// can be RAUW'd if the full type is seen.
DIType DIBuilder::createForwardDecl(unsigned Tag, StringRef Name,
DICompositeType DIBuilder::createForwardDecl(unsigned Tag, StringRef Name,
DIDescriptor Scope, DIFile F,
unsigned Line, unsigned RuntimeLang,
uint64_t SizeInBits,
@@ -863,11 +863,12 @@ DIType DIBuilder::createForwardDecl(unsigned Tag, StringRef Name,
DIDescriptor::FlagFwdDecl),
NULL,
DIArray(),
ConstantInt::get(Type::getInt32Ty(VMContext), RuntimeLang)
ConstantInt::get(Type::getInt32Ty(VMContext), RuntimeLang),
NULL
};
MDNode *Node = MDNode::getTemporary(VMContext, Elts);
DIType RetTy(Node);
assert(RetTy.isType() &&
DICompositeType RetTy(Node);
assert(RetTy.isCompositeType() &&
"createForwardDecl result should be a DIType");
return RetTy;
}