llvm.org GIT mirror llvm / 5098da0
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 Devang Patel 10 years ago
3 changed file(s) with 12 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
17331733 addUInt(Die, dwarf::DW_AT_language, dwarf::DW_FORM_data1,
17341734 DIUnit.getLanguage());
17351735 addString(Die, dwarf::DW_AT_name, dwarf::DW_FORM_string, FN);
1736 addLabel(Die, dwarf::DW_AT_low_pc, dwarf::DW_FORM_addr, TextSectionSym);
1737 addLabel(Die, dwarf::DW_AT_high_pc, dwarf::DW_FORM_addr,
1738 Asm->GetTempSymbol("text_end"));
1736 // Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This
1737 // simplifies debug range entries.
1738 addUInt(Die, dwarf::DW_AT_entry_pc, dwarf::DW_FORM_data4, 0);
17391739 // DW_AT_stmt_list is a offset of line number information for this
17401740 // compile unit in debug_line section. It is always zero when only one
17411741 // compile unit is emitted in one object file.
+0
-9
test/DebugInfo/2010-03-22-CU-HighLow.ll less more
None ; RUN: llc < %s | grep low_pc | count 2
1 @i = global i32 1 ; [#uses=0]
2
3 !llvm.dbg.gv = !{!0}
4
5 !0 = metadata !{i32 524340, i32 0, metadata !1, metadata !"i", metadata !"i", metadata !"", metadata !1, i32 1, metadata !3, i1 false, i1 true, i32* @i} ; [ DW_TAG_variable ]
6 !1 = metadata !{i32 524329, metadata !"b.c", metadata !"/tmp", metadata !2} ; [ DW_TAG_file_type ]
7 !2 = metadata !{i32 524305, i32 0, i32 1, metadata !"b.c", metadata !"/tmp", metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ]
8 !3 = metadata !{i32 524324, metadata !1, metadata !"int", metadata !1, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]
0 ; RUN: llc < %s | grep entry_pc | count 2
1 @i = global i32 1 ; [#uses=0]
2
3 !llvm.dbg.gv = !{!0}
4
5 !0 = metadata !{i32 524340, i32 0, metadata !1, metadata !"i", metadata !"i", metadata !"", metadata !1, i32 1, metadata !3, i1 false, i1 true, i32* @i} ; [ DW_TAG_variable ]
6 !1 = metadata !{i32 524329, metadata !"b.c", metadata !"/tmp", metadata !2} ; [ DW_TAG_file_type ]
7 !2 = metadata !{i32 524305, i32 0, i32 1, metadata !"b.c", metadata !"/tmp", metadata !"4.2.1 (Based on Apple Inc. build 5658) (LLVM build)", i1 true, i1 false, metadata !"", i32 0} ; [ DW_TAG_compile_unit ]
8 !3 = metadata !{i32 524324, metadata !1, metadata !"int", metadata !1, i32 0, i64 32, i64 32, i64 0, i32 0, i32 5} ; [ DW_TAG_base_type ]