Implemented a types.py module that allows types to be inspected for padding.
The script was able to point out and save 40 bytes in each lldb_private::Section by being very careful where we need to have virtual destructors and also by re-ordering members.
llvm-svn: 184364
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp
index 0d924a3..203a6da 100644
--- a/lldb/source/Core/Section.cpp
+++ b/lldb/source/Core/Section.cpp
@@ -27,9 +27,9 @@
ModuleChild (module_sp),
UserID (sect_id),
Flags (flags),
+ m_type (sect_type),
m_parent_wp (),
m_name (name),
- m_type (sect_type),
m_file_addr (file_addr),
m_byte_size (byte_size),
m_file_offset (file_offset),
@@ -56,9 +56,9 @@
ModuleChild (module_sp),
UserID (sect_id),
Flags (flags),
+ m_type (sect_type),
m_parent_wp (),
m_name (name),
- m_type (sect_type),
m_file_addr (file_addr),
m_byte_size (byte_size),
m_file_offset (file_offset),