Lines Matching refs:Offset
59 DWARFDebugLoc::getLocationListAtOffset(uint64_t Offset) const { in getLocationListAtOffset()
61 Locations.begin(), Locations.end(), Offset, in getLocationListAtOffset()
62 [](const LocationList &L, uint64_t Offset) { return L.Offset < Offset; }); in getLocationListAtOffset() argument
63 if (It != Locations.end() && It->Offset == Offset) in getLocationListAtOffset()
69 Optional<uint64_t> Offset) const { in dump()
71 OS << format("0x%8.8x: ", L.Offset); in dump()
76 if (Offset) { in dump()
77 if (auto *L = getLocationListAtOffset(*Offset)) in dump()
88 DWARFDebugLoc::parseOneLocationList(DWARFDataExtractor Data, unsigned *Offset) { in parseOneLocationList() argument
90 LL.Offset = *Offset; in parseOneLocationList()
96 if (!Data.isValidOffsetForDataOfSize(*Offset, 2 * Data.getAddressSize())) { in parseOneLocationList()
102 E.Begin = Data.getRelocatedAddress(Offset); in parseOneLocationList()
105 E.End = Data.getRelocatedAddress(Offset); in parseOneLocationList()
113 if (!Data.isValidOffsetForDataOfSize(*Offset, 2)) { in parseOneLocationList()
118 unsigned Bytes = Data.getU16(Offset); in parseOneLocationList()
119 if (!Data.isValidOffsetForDataOfSize(*Offset, Bytes)) { in parseOneLocationList()
124 StringRef str = Data.getData().substr(*Offset, Bytes); in parseOneLocationList()
125 *Offset += Bytes; in parseOneLocationList()
136 uint32_t Offset = 0; in parse() local
137 while (data.isValidOffset(Offset + data.getAddressSize() - 1)) { in parse()
138 if (auto LL = parseOneLocationList(data, &Offset)) in parse()
143 if (data.isValidOffset(Offset)) in parse()
148 DWARFDebugLoclists::parseOneLocationList(DataExtractor Data, unsigned *Offset, in parseOneLocationList() argument
151 LL.Offset = *Offset; in parseOneLocationList()
155 static_cast<dwarf::LocationListEntry>(Data.getU8(Offset))) { in parseOneLocationList()
161 E.Value0 = Data.getULEB128(Offset); in parseOneLocationList()
165 E.Value1 = Data.getU32(Offset); in parseOneLocationList()
167 E.Value1 = Data.getULEB128(Offset); in parseOneLocationList()
170 E.Value0 = Data.getAddress(Offset); in parseOneLocationList()
171 E.Value1 = Data.getULEB128(Offset); in parseOneLocationList()
174 E.Value0 = Data.getULEB128(Offset); in parseOneLocationList()
175 E.Value1 = Data.getULEB128(Offset); in parseOneLocationList()
178 E.Value0 = Data.getAddress(Offset); in parseOneLocationList()
188 Version >= 5 ? Data.getULEB128(Offset) : Data.getU16(Offset); in parseOneLocationList()
190 StringRef str = Data.getData().substr(*Offset, Bytes); in parseOneLocationList()
191 *Offset += Bytes; in parseOneLocationList()
205 uint32_t Offset = 0; in parse() local
206 while (data.isValidOffset(Offset)) { in parse()
207 if (auto LL = parseOneLocationList(data, &Offset, Version)) in parse()
215 DWARFDebugLoclists::getLocationListAtOffset(uint64_t Offset) const { in getLocationListAtOffset()
217 Locations.begin(), Locations.end(), Offset, in getLocationListAtOffset()
218 [](const LocationList &L, uint64_t Offset) { return L.Offset < Offset; }); in getLocationListAtOffset() argument
219 if (It != Locations.end() && It->Offset == Offset) in getLocationListAtOffset()
263 Optional<uint64_t> Offset) const { in dump()
265 OS << format("0x%8.8x: ", L.Offset); in dump()
270 if (Offset) { in dump()
271 if (auto *L = getLocationListAtOffset(*Offset)) in dump()