diff options
| author | Paul Robinson <paul.robinson@sony.com> | 2017-11-07 19:57:12 +0000 |
|---|---|---|
| committer | Paul Robinson <paul.robinson@sony.com> | 2017-11-07 19:57:12 +0000 |
| commit | e5400f8a6e601729da4aa6706cda3db37a06bf13 (patch) | |
| tree | 723757cd4c9d691e223b5f628c209d8862808085 /llvm/tools | |
| parent | 5c65148565d9af773c51e20c219f494a5fc3cd3d (diff) | |
| download | bcm5719-llvm-e5400f8a6e601729da4aa6706cda3db37a06bf13.tar.gz bcm5719-llvm-e5400f8a6e601729da4aa6706cda3db37a06bf13.zip | |
[DWARFv5] Support DW_FORM_strp in the .debug_line header.
Supporting this form in .debug_line.dwo will be done as a follow-up.
Differential Revision: https://reviews.llvm.org/D33155
llvm-svn: 317607
Diffstat (limited to 'llvm/tools')
| -rw-r--r-- | llvm/tools/dsymutil/DwarfLinker.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/dsymutil/DwarfLinker.cpp b/llvm/tools/dsymutil/DwarfLinker.cpp index 9fb968cb5d2..0fdc690dab4 100644 --- a/llvm/tools/dsymutil/DwarfLinker.cpp +++ b/llvm/tools/dsymutil/DwarfLinker.cpp @@ -2366,7 +2366,7 @@ void DwarfLinker::keepDIEAndDependencies(RelocationManager &RelocMgr, continue; } - Val.extractValue(Data, &Offset, &Unit); + Val.extractValue(Data, &Offset, Unit.getFormParams(), &Unit); CompileUnit *ReferencedCU; if (auto RefDie = resolveDIEReference(*this, Units, Val, Unit, Die, ReferencedCU)) { @@ -2965,7 +2965,7 @@ DIE *DwarfLinker::DIECloner::cloneDIE( DWARFFormValue Val(AttrSpec.Form); uint32_t AttrSize = Offset; - Val.extractValue(Data, &Offset, &U); + Val.extractValue(Data, &Offset, U.getFormParams(), &U); AttrSize = Offset - AttrSize; OutOffset += @@ -3158,7 +3158,7 @@ void DwarfLinker::patchLineTableForUnit(CompileUnit &Unit, DWARFDataExtractor LineExtractor( OrigDwarf.getDWARFObj(), OrigDwarf.getDWARFObj().getLineSection(), OrigDwarf.isLittleEndian(), Unit.getOrigUnit().getAddressByteSize()); - LineTable.parse(LineExtractor, &StmtOffset); + LineTable.parse(LineExtractor, &StmtOffset, &Unit.getOrigUnit()); // This vector is the output line table. std::vector<DWARFDebugLine::Row> NewRows; |

