diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-12-10 00:15:44 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-12-10 00:15:44 +0000 |
commit | 94ea5be39fe379cda3ff144a99b6a1a69a9fe2e2 (patch) | |
tree | ed64507396551b399c479df97b737c56ad1cabb6 /lib/CodeGen/MachineModuleInfo.cpp | |
parent | aedc637c966b6eaa3ca33e9220efe5ec34517de7 (diff) |
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
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineModuleInfo.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 9e0e9025a4..f93f27c934 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/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 |