diff options
author | Devang Patel <dpatel@apple.com> | 2010-04-26 22:54:28 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-04-26 22:54:28 +0000 |
commit | bd798ce8dd0cb147a93ab9547a894c7c2633a40a (patch) | |
tree | 342aa4e8bb8a065cddac225da32da0d399c7c4f6 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 9da641912d4d36661d69aef225ffb6d770963479 (diff) | |
download | bcm5719-llvm-bd798ce8dd0cb147a93ab9547a894c7c2633a40a.tar.gz bcm5719-llvm-bd798ce8dd0cb147a93ab9547a894c7c2633a40a.zip |
Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This simplifies debug range entries.
llvm-svn: 102394
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index c31aec17590..3ce0711a520 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1734,9 +1734,9 @@ void DwarfDebug::constructCompileUnit(MDNode *N) { addUInt(Die, dwarf::DW_AT_language, dwarf::DW_FORM_data1, DIUnit.getLanguage()); addString(Die, dwarf::DW_AT_name, dwarf::DW_FORM_string, FN); - addLabel(Die, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr, TextSectionSym); - addLabel(Die, dwarf::DW_AT_high_pc, dwarf::DW_FORM_addr, - Asm->GetTempSymbol("text_end")); + // Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This + // simplifies debug range entries. + addUInt(Die, dwarf::DW_AT_entry_pc, dwarf::DW_FORM_data4, 0); // DW_AT_stmt_list is a offset of line number information for this // compile unit in debug_line section. It is always zero when only one // compile unit is emitted in one object file. |