mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This simplifies debug range entries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102394 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1734,9 +1734,9 @@ void DwarfDebug::constructCompileUnit(MDNode *N) {
|
|||||||
addUInt(Die, dwarf::DW_AT_language, dwarf::DW_FORM_data1,
|
addUInt(Die, dwarf::DW_AT_language, dwarf::DW_FORM_data1,
|
||||||
DIUnit.getLanguage());
|
DIUnit.getLanguage());
|
||||||
addString(Die, dwarf::DW_AT_name, dwarf::DW_FORM_string, FN);
|
addString(Die, dwarf::DW_AT_name, dwarf::DW_FORM_string, FN);
|
||||||
addLabel(Die, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr, TextSectionSym);
|
// Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This
|
||||||
addLabel(Die, dwarf::DW_AT_high_pc, dwarf::DW_FORM_addr,
|
// simplifies debug range entries.
|
||||||
Asm->GetTempSymbol("text_end"));
|
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
|
// 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 in debug_line section. It is always zero when only one
|
||||||
// compile unit is emitted in one object file.
|
// compile unit is emitted in one object file.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: llc < %s | grep low_pc | count 2
|
; RUN: llc < %s | grep entry_pc | count 2
|
||||||
@i = global i32 1 ; <i32*> [#uses=0]
|
@i = global i32 1 ; <i32*> [#uses=0]
|
||||||
|
|
||||||
!llvm.dbg.gv = !{!0}
|
!llvm.dbg.gv = !{!0}
|
Reference in New Issue
Block a user