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 | 288fbd2133d3243e4c29496d0f738540a0b0305e (patch) | |
tree | 628b2ae1b2c8ac1af8a849d480e8b7e6b4996dc9 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | a2495508cd71583c6d4352c1ed247b4dd4fb7916 (diff) | |
download | bcm5719-llvm-288fbd2133d3243e4c29496d0f738540a0b0305e.tar.gz bcm5719-llvm-288fbd2133d3243e4c29496d0f738540a0b0305e.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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 |