diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-23 21:04:59 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-23 21:04:59 +0000 |
commit | e226b08ee99cb1e868e4f48e847199d7fd21aee7 (patch) | |
tree | 8ee1a16929dd115ebbca411cb0299506ad562ef5 /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | be558888499e98ed4c1f0a20ce9178114e86a5e2 (diff) | |
download | bcm5719-llvm-e226b08ee99cb1e868e4f48e847199d7fd21aee7.tar.gz bcm5719-llvm-e226b08ee99cb1e868e4f48e847199d7fd21aee7.zip |
Separate out the DWARF address pool into its own type/files.
llvm-svn: 207022
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 9d9fcbadb3d..e98df8cd47e 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -888,7 +888,7 @@ void DwarfDebug::finalizeModuleInfo() { // We don't keep track of which addresses are used in which CU so this // is a bit pessimistic under LTO. - if (!InfoHolder.getAddrPool()->empty()) + if (!InfoHolder.getAddressPool().isEmpty()) addSectionLabel(*Asm, *SkCU, SkCU->getUnitDie(), dwarf::DW_AT_GNU_addr_base, DwarfAddrSectionSym, DwarfAddrSectionSym); @@ -1019,7 +1019,8 @@ void DwarfDebug::endModule() { emitDebugAbbrevDWO(); emitDebugLineDWO(); // Emit DWO addresses. - InfoHolder.emitAddresses(Asm->getObjFileLowering().getDwarfAddrSection()); + InfoHolder.getAddressPool().emit( + *Asm, Asm->getObjFileLowering().getDwarfAddrSection()); emitDebugLocDWO(); } else // Emit info into a debug loc section. @@ -2204,7 +2205,7 @@ void DwarfDebug::emitDebugLocDWO() { // address we know we've emitted elsewhere (the start of the function? // The start of the CU or CU subrange that encloses this range?) Asm->EmitInt8(dwarf::DW_LLE_start_length_entry); - unsigned idx = InfoHolder.getAddrPoolIndex(Entry.getBeginSym()); + unsigned idx = InfoHolder.getAddressPool().getIndex(Entry.getBeginSym()); Asm->EmitULEB128(idx); Asm->EmitLabelDifference(Entry.getEndSym(), Entry.getBeginSym(), 4); |