Fix a couple of Dwarf bugs.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 10 Dec 2008 00:15:44 +0000 (00:15 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 10 Dec 2008 00:15:44 +0000 (00:15 +0000)
commit94ea5be39fe379cda3ff144a99b6a1a69a9fe2e2
treeed64507396551b399c479df97b737c56ad1cabb6
parentaedc637c966b6eaa3ca33e9220efe5ec34517de7
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
include/llvm/CodeGen/MachineModuleInfo.h
lib/CodeGen/AsmPrinter/DwarfWriter.cpp
lib/CodeGen/MachineModuleInfo.cpp
test/DebugInfo/forwardDecl.ll [new file with mode: 0644]