Fix a couple of Dwarf bugs.

- Emit DW_AT_byte_size for struct and union of size zero.
- Emit DW_AT_declaration for forward type declaration.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2008-12-10 00:15:44 +00:00
parent aedc637c96
commit 94ea5be39f
4 changed files with 79 additions and 9 deletions

View File

@ -906,7 +906,8 @@ void BasicTypeDesc::dump() {
<< "Context(" << getContext() << "), "
<< "Name(\"" << getName() << "\"), "
<< "Size(" << getSize() << "), "
<< "Encoding(" << Encoding << ")\n";
<< "Encoding(" << Encoding << "),"
<< "Flags(" << Flags << ")\n";
}
#endif
@ -965,7 +966,8 @@ void DerivedTypeDesc::dump() {
<< "Size(" << getSize() << "), "
<< "File(" << getFile() << "), "
<< "Line(" << getLine() << "), "
<< "FromType(" << FromType << ")\n";
<< "FromType(" << FromType << "),"
<< "Flags(" << Flags << ")\n";
}
#endif
@ -1023,7 +1025,8 @@ void CompositeTypeDesc::dump() {
<< "File(" << getFile() << "), "
<< "Line(" << getLine() << "), "
<< "FromType(" << getFromType() << "), "
<< "Elements.size(" << Elements.size() << ")\n";
<< "Elements.size(" << Elements.size() << "),"
<< "Flags(" << Flags << ")\n";
}
#endif