diff --git a/include/llvm/DebugInfo/DWARF/DWARFSection.h b/include/llvm/DebugInfo/DWARF/DWARFSection.h index 43df3b36809..3b3f9b2c4d0 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFSection.h +++ b/include/llvm/DebugInfo/DWARF/DWARFSection.h @@ -19,10 +19,6 @@ struct DWARFSection { StringRef Data; }; -struct DWARFSectionMap final : public DWARFSection { - RelocAddrMap Relocs; -}; - } // end namespace llvm #endif // LLVM_DEBUGINFO_DWARF_DWARFSECTION_H diff --git a/lib/DebugInfo/DWARF/DWARFContext.cpp b/lib/DebugInfo/DWARF/DWARFContext.cpp index 1b45ca9e20d..654fc0c10c4 100644 --- a/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -916,6 +916,12 @@ ErrorPolicy DWARFContext::defaultErrorHandler(Error E) { return ErrorPolicy::Continue; } +namespace { +struct DWARFSectionMap final : public DWARFSection { + RelocAddrMap Relocs; +}; +} // namespace + class DWARFObjInMemory final : public DWARFObject { bool IsLittleEndian; uint8_t AddressSize;