[llvm] r308913 - Move DWARFSectionMap to a .cpp file.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 12:34:26 PDT 2017
Author: rafael
Date: Mon Jul 24 12:34:26 2017
New Revision: 308913
URL: http://llvm.org/viewvc/llvm-project?rev=308913&view=rev
Log:
Move DWARFSectionMap to a .cpp file.
Thanks to Paul Robinson for the suggestion.
Modified:
llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFSection.h
llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
Modified: llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFSection.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFSection.h?rev=308913&r1=308912&r2=308913&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFSection.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/DWARF/DWARFSection.h Mon Jul 24 12:34:26 2017
@@ -19,10 +19,6 @@ struct DWARFSection {
StringRef Data;
};
-struct DWARFSectionMap final : public DWARFSection {
- RelocAddrMap Relocs;
-};
-
} // end namespace llvm
#endif // LLVM_DEBUGINFO_DWARF_DWARFSECTION_H
Modified: llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp?rev=308913&r1=308912&r2=308913&view=diff
==============================================================================
--- llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp (original)
+++ llvm/trunk/lib/DebugInfo/DWARF/DWARFContext.cpp Mon Jul 24 12:34:26 2017
@@ -916,6 +916,12 @@ ErrorPolicy DWARFContext::defaultErrorHa
return ErrorPolicy::Continue;
}
+namespace {
+struct DWARFSectionMap final : public DWARFSection {
+ RelocAddrMap Relocs;
+};
+} // namespace
+
class DWARFObjInMemory final : public DWARFObject {
bool IsLittleEndian;
uint8_t AddressSize;
More information about the llvm-commits
mailing list