If a derived type is also a composite type, print that information

too.

llvm-svn: 150974
This commit is contained in:
Eric Christopher 2012-02-20 18:04:35 +00:00
parent ed41b1f1ef
commit 69a0eb9258

View File

@ -721,8 +721,13 @@ void DIType::print(raw_ostream &OS) const {
if (isBasicType())
DIBasicType(DbgNode).print(OS);
else if (isDerivedType())
DIDerivedType(DbgNode).print(OS);
else if (isDerivedType()) {
DIDerivedType DTy = DIDerivedType(DbgNode);
DTy.print(OS);
DICompositeType CTy = getDICompositeType(DTy);
if (CTy.Verify())
CTy.print(OS);
}
else if (isCompositeType())
DICompositeType(DbgNode).print(OS);
else {