[PATCH] D82351: [ObjectYAML][DWARF] Remove unused context. NFC.
Xing GUO via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 23:25:46 PDT 2020
Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Higuoxing edited the summary of this revision.
The context is unused. This patch helps remove it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82351
Files:
llvm/lib/ObjectYAML/DWARFYAML.cpp
Index: llvm/lib/ObjectYAML/DWARFYAML.cpp
===================================================================
--- llvm/lib/ObjectYAML/DWARFYAML.cpp
+++ llvm/lib/ObjectYAML/DWARFYAML.cpp
@@ -44,8 +44,6 @@
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())
@@ -59,7 +57,6 @@
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,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82351.272624.patch
Type: text/x-patch
Size: 788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200623/93a5f8a6/attachment.bin>
More information about the llvm-commits
mailing list