From: Rafael Espindola Date: Mon, 24 Jul 2017 19:34:26 +0000 (+0000) Subject: Move DWARFSectionMap to a .cpp file. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8121aebb83fedb0daed732d1542d50b949865540;p=llvm Move DWARFSectionMap to a .cpp file. Thanks to Paul Robinson for the suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308913 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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;