[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:
Xing GUO 2020-06-24 00:02:09 +08:00
parent a809cea68c
commit 45fa936855
1 changed files with 0 additions and 3 deletions

View File

@ -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,