summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-02-16 14:27:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-02-16 14:27:33 +0000
commit65a6fd8844fd9b2de1abbbc93807811da378b7a3 (patch)
tree36595e0139467298ca1c6c8bda91b61e20d4b812
parent6009db696b08e0b3d10a3a00705296e375a24330 (diff)
downloadbcm5719-llvm-65a6fd8844fd9b2de1abbbc93807811da378b7a3.tar.gz
bcm5719-llvm-65a6fd8844fd9b2de1abbbc93807811da378b7a3.zip
Move DynRegionInfo out of the ELFDumper.
This reduces indentation in preparation to adding a bit more code to it. Extracted from r260488. llvm-svn: 260963
-rw-r--r--llvm/tools/llvm-readobj/ELFDumper.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp
index 92b92f1fad1..cd221e39747 100644
--- a/llvm/tools/llvm-readobj/ELFDumper.cpp
+++ b/llvm/tools/llvm-readobj/ELFDumper.cpp
@@ -48,6 +48,17 @@ namespace {
template <class ELFT> class DumpStyle;
+/// \brief Represents a region described by entries in the .dynamic table.
+struct DynRegionInfo {
+ DynRegionInfo() : Addr(nullptr), Size(0), EntSize(0) {}
+ /// \brief Address in current address space.
+ const void *Addr;
+ /// \brief Size in bytes of the region.
+ uint64_t Size;
+ /// \brief Size of each entity in the region.
+ uint64_t EntSize;
+};
+
template<typename ELFT>
class ELFDumper : public ObjDumper {
public:
@@ -101,17 +112,6 @@ private:
typedef typename ELFO::Elf_Verdef Elf_Verdef;
typedef typename ELFO::Elf_Verdaux Elf_Verdaux;
- /// \brief Represents a region described by entries in the .dynamic table.
- struct DynRegionInfo {
- DynRegionInfo() : Addr(nullptr), Size(0), EntSize(0) {}
- /// \brief Address in current address space.
- const void *Addr;
- /// \brief Size in bytes of the region.
- uintX_t Size;
- /// \brief Size of each entity in the region.
- uintX_t EntSize;
- };
-
void parseDynamicTable(ArrayRef<const Elf_Phdr *> LoadSegments);
void printSymbolsHelper(bool IsDynamic);
OpenPOWER on IntegriCloud