forked from OSchip/llvm-project
[ObjectYAML][DWARF] Remove unused context. NFC.
The context is unused. This patch helps remove it. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D82351
This commit is contained in:
parent
a809cea68c
commit
45fa936855
|
@ -48,8 +48,6 @@ SetVector<StringRef> DWARFYAML::Data::getUsedSectionNames() const {
|
|||
namespace yaml {
|
||||
|
||||
void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) {
|
||||
auto oldContext = IO.getContext();
|
||||
IO.setContext(&DWARF);
|
||||
IO.mapOptional("debug_str", DWARF.DebugStrings);
|
||||
IO.mapOptional("debug_abbrev", DWARF.AbbrevDecls);
|
||||
if (!DWARF.ARanges.empty() || !IO.outputting())
|
||||
|
@ -63,7 +61,6 @@ void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) {
|
|||
IO.mapOptional("debug_info", DWARF.CompileUnits);
|
||||
IO.mapOptional("debug_line", DWARF.DebugLines);
|
||||
IO.mapOptional("debug_addr", DWARF.DebugAddr);
|
||||
IO.setContext(&oldContext);
|
||||
}
|
||||
|
||||
void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO,
|
||||
|
|
Loading…
Reference in New Issue