[llvm] r196851 - Disable emitting DW_AT_GNU_ranges_base until we actually use it.
Eric Christopher
echristo at gmail.com
Mon Dec 9 16:40:04 PST 2013
Author: echristo
Date: Mon Dec 9 18:40:03 2013
New Revision: 196851
URL: http://llvm.org/viewvc/llvm-project?rev=196851&view=rev
Log:
Disable emitting DW_AT_GNU_ranges_base until we actually use it.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp?rev=196851&r1=196850&r2=196851&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfDebug.cpp Mon Dec 9 18:40:03 2013
@@ -2943,6 +2943,7 @@ void DwarfDebug::emitDebugRanges() {
// This DIE has the following attributes: DW_AT_comp_dir, DW_AT_stmt_list,
// DW_AT_low_pc, DW_AT_high_pc, DW_AT_ranges, DW_AT_dwo_name, DW_AT_dwo_id,
// DW_AT_ranges_base, DW_AT_addr_base.
+// TODO: Implement DW_AT_ranges_base.
DwarfCompileUnit *DwarfDebug::constructSkeletonCU(const DwarfCompileUnit *CU) {
DIE *Die = new DIE(dwarf::DW_TAG_compile_unit);
@@ -2979,12 +2980,6 @@ DwarfCompileUnit *DwarfDebug::constructS
addGnuPubAttributes(NewCU, Die);
- // Attribute if we've emitted any ranges and their location for the compile
- // unit.
- if (!CU->getRangeLists().empty())
- addSectionLabel(Asm, NewCU, Die, dwarf::DW_AT_GNU_ranges_base,
- NewCU->getLabelRange(), DwarfDebugRangeSectionSym);
-
SkeletonHolder.addUnit(NewCU);
return NewCU;
More information about the llvm-commits
mailing list