From 288fbd2133d3243e4c29496d0f738540a0b0305e Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Wed, 10 Dec 2008 00:15:44 +0000 Subject: 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. llvm-svn: 60812 --- llvm/lib/CodeGen/MachineModuleInfo.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 9e0e9025a4b..f93f27c934d 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -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 -- cgit v1.2.3