diff options
Diffstat (limited to 'contrib/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp')
-rw-r--r-- | contrib/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/contrib/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp b/contrib/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp index 462c036d73ad..e38e706227da 100644 --- a/contrib/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp +++ b/contrib/llvm/lib/DebugInfo/DWARF/DWARFListTable.cpp @@ -1,9 +1,8 @@ //===- DWARFListTable.cpp ---------------------------------------------===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -26,7 +25,7 @@ Error DWARFListTableHeader::extract(DWARFDataExtractor Data, "%s table length at offset 0x%" PRIx32, SectionName.data(), *OffsetPtr); // TODO: Add support for DWARF64. - HeaderData.Length = Data.getU32(OffsetPtr); + HeaderData.Length = Data.getRelocatedValue(4, OffsetPtr); if (HeaderData.Length == 0xffffffffu) return createStringError(errc::not_supported, "DWARF64 is not supported in %s at offset 0x%" PRIx32, @@ -74,7 +73,7 @@ Error DWARFListTableHeader::extract(DWARFDataExtractor Data, SectionName.data(), HeaderOffset, HeaderData.OffsetEntryCount); Data.setAddressSize(HeaderData.AddrSize); for (uint32_t I = 0; I < HeaderData.OffsetEntryCount; ++I) - Offsets.push_back(Data.getU32(OffsetPtr)); + Offsets.push_back(Data.getRelocatedValue(4, OffsetPtr)); return Error::success(); } |