Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/ObjectYAML/DWARFEmitter.cpp
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | for (auto Attr : AbbrevDecl.Attributes) { | ||||
encodeULEB128(Attr.Form, OS); | encodeULEB128(Attr.Form, OS); | ||||
if (Attr.Form == dwarf::DW_FORM_implicit_const) | if (Attr.Form == dwarf::DW_FORM_implicit_const) | ||||
encodeSLEB128(Attr.Value, OS); | encodeSLEB128(Attr.Value, OS); | ||||
} | } | ||||
encodeULEB128(0, OS); | encodeULEB128(0, OS); | ||||
encodeULEB128(0, OS); | encodeULEB128(0, OS); | ||||
} | } | ||||
// The abbreviations for a given compilation unit end with an entry consisting | |||||
// of a 0 byte for the abbreviation code. | |||||
OS.write_zeros(1); | |||||
return Error::success(); | return Error::success(); | ||||
} | } | ||||
Error DWARFYAML::emitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) { | Error DWARFYAML::emitDebugAranges(raw_ostream &OS, const DWARFYAML::Data &DI) { | ||||
for (auto Range : DI.ARanges) { | for (auto Range : DI.ARanges) { | ||||
auto HeaderStart = OS.tell(); | auto HeaderStart = OS.tell(); | ||||
writeInitialLength(Range.Format, Range.Length, OS, DI.IsLittleEndian); | writeInitialLength(Range.Format, Range.Length, OS, DI.IsLittleEndian); | ||||
writeInteger((uint16_t)Range.Version, OS, DI.IsLittleEndian); | writeInteger((uint16_t)Range.Version, OS, DI.IsLittleEndian); | ||||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |