Lines Matching refs:Unit
36 static unsigned getOffsetSize(const DWARFYAML::Unit &Unit) {
37 return Unit.Length.isDWARF64() ? 8 : 4;
40 static unsigned getRefSize(const DWARFYAML::Unit &Unit) {
41 if (Unit.Version == 2)
42 return Unit.AddrSize;
43 return getOffsetSize(Unit);
47 for (auto &Unit : DebugInfo.CompileUnits) {
48 onStartCompileUnit(Unit);
49 auto FirstAbbrevCode = Unit.Entries[0].AbbrCode;
51 for (auto &Entry : Unit.Entries) {
52 onStartDIE(Unit, Entry);
68 onVariableSizeValue(FormVal->Value, Unit.AddrSize);
71 onVariableSizeValue(FormVal->Value, getRefSize(Unit));
155 onVariableSizeValue(FormVal->Value, getOffsetSize(Unit));
169 onEndDIE(Unit, Entry);
171 onEndCompileUnit(Unit);