diff options
author | David Blaikie <dblaikie@gmail.com> | 2019-10-17 23:02:19 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2019-10-17 23:02:19 +0000 |
commit | 2941cda5be11332b3bd5c26be220ed18cd216c30 (patch) | |
tree | 14a09cda042027816904bc854e4e52cbffd33a3f /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | 03819d1c80ad5d7b34f8fe0d375fcd2ef6aa5e7f (diff) | |
download | bcm5719-llvm-2941cda5be11332b3bd5c26be220ed18cd216c30.tar.gz bcm5719-llvm-2941cda5be11332b3bd5c26be220ed18cd216c30.zip |
DebugInfo: Move loclist base address from DwarfFile to DebugLocStream
There's no need to have more than one of these (there can be two
DwarfFiles - one for the .o, one for the .dwo - but only one loc/loclist
section (either in the .o or the .dwo) & certainly one per
DebugLocStream, which is currently singular in DwarfDebug)
llvm-svn: 375183
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index ae11dc85139..37c68c08579 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1714,15 +1714,6 @@ void DwarfUnit::addRnglistsBase() { TLOF.getDwarfRnglistsSection()->getBeginSymbol()); } -void DwarfUnit::addLoclistsBase() { - assert(DD->getDwarfVersion() >= 5 && - "DW_AT_loclists_base requires DWARF version 5 or later"); - const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering(); - addSectionLabel(getUnitDie(), dwarf::DW_AT_loclists_base, - DU->getLoclistsTableBaseSym(), - TLOF.getDwarfLoclistsSection()->getBeginSymbol()); -} - void DwarfTypeUnit::finishNonUnitTypeDIE(DIE& D, const DICompositeType *CTy) { addFlag(D, dwarf::DW_AT_declaration); StringRef Name = CTy->getName(); |