OSDN Git Service

Move DWARFSectionMap to a .cpp file.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 24 Jul 2017 19:34:26 +0000 (19:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 24 Jul 2017 19:34:26 +0000 (19:34 +0000)
Thanks to Paul Robinson for the suggestion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308913 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARF/DWARFSection.h
lib/DebugInfo/DWARF/DWARFContext.cpp

index 43df3b3..3b3f9b2 100644 (file)
@@ -19,10 +19,6 @@ struct DWARFSection {
   StringRef Data;
 };
 
-struct DWARFSectionMap final : public DWARFSection {
-  RelocAddrMap Relocs;
-};
-
 } // end namespace llvm
 
 #endif // LLVM_DEBUGINFO_DWARF_DWARFSECTION_H
index 1b45ca9..654fc0c 100644 (file)
@@ -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;