diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-20 22:27:02 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-20 22:27:02 +0000 |
commit | 6bbacbe37293bd401de9eec01f557f646b81d7c3 (patch) | |
tree | 59d2eb55bc1130ed6c8ebcbbaefcee3db1051617 /llvm/lib | |
parent | 6fbec1c2306fd1d3683686bd3523f0cc289d25b0 (diff) | |
download | bcm5719-llvm-6bbacbe37293bd401de9eec01f557f646b81d7c3.tar.gz bcm5719-llvm-6bbacbe37293bd401de9eec01f557f646b81d7c3.zip |
Appropriately mark fowrad decls.
llvm-svn: 62625
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index dccd59c8720..a2934bd8c75 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -1820,19 +1820,16 @@ private: if (Size) AddUInt(&Buffer, DW_AT_byte_size, 0, Size); else { - // Add zero size even if it is not a forward declaration. - // FIXME - Enable this. - // if (!CTy.isDefinition()) - // AddUInt(&Buffer, DW_AT_declaration, DW_FORM_flag, 1); - // else - // AddUInt(&Buffer, DW_AT_byte_size, 0, 0); + // Add zero size if it is not a forward declaration. + if (CTy.isForwardDecl()) + AddUInt(&Buffer, DW_AT_declaration, DW_FORM_flag, 1); + else + AddUInt(&Buffer, DW_AT_byte_size, 0, 0); } - // Add source line info if available and TyDesc is not a forward - // declaration. - // FIXME - Enable this. - // if (CTy.isForwardDecl()) - // AddSourceLine(&Buffer, *CTy); + // Add source line info if available. + if (!CTy.isForwardDecl()) + AddSourceLine(&Buffer, &CTy); } // ConstructSubrangeDIE - Construct subrange DIE from DISubrange. |