From 45fa936855f62dc7864028a3f2fa7a9693b9fceb Mon Sep 17 00:00:00 2001 From: Xing GUO Date: Wed, 24 Jun 2020 00:02:09 +0800 Subject: [PATCH] [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 --- llvm/lib/ObjectYAML/DWARFYAML.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/ObjectYAML/DWARFYAML.cpp b/llvm/lib/ObjectYAML/DWARFYAML.cpp index 3717726..9865c1b 100644 --- a/llvm/lib/ObjectYAML/DWARFYAML.cpp +++ b/llvm/lib/ObjectYAML/DWARFYAML.cpp @@ -48,8 +48,6 @@ SetVector DWARFYAML::Data::getUsedSectionNames() const { namespace yaml { void MappingTraits::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::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::mapping(IO &IO, -- 2.7.4