summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Section.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2013-06-19 21:50:28 +0000
committerGreg Clayton <gclayton@apple.com>2013-06-19 21:50:28 +0000
commitd8c3d4b1e9f8695a9c063615a324cb105c9ab780 (patch)
treecd14cf1ec62a3ee6215f7f1e8bab6cb0af9c9daf /lldb/source/Core/Section.cpp
parent6d2cfb80ba239ed47d962d7dd2487c168082c531 (diff)
downloadbcm5719-llvm-d8c3d4b1e9f8695a9c063615a324cb105c9ab780.tar.gz
bcm5719-llvm-d8c3d4b1e9f8695a9c063615a324cb105c9ab780.zip
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
Diffstat (limited to 'lldb/source/Core/Section.cpp')
-rw-r--r--lldb/source/Core/Section.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Section.cpp b/lldb/source/Core/Section.cpp
index 0d924a34a65..203a6daf5cc 100644
--- a/lldb/source/Core/Section.cpp
+++ b/lldb/source/Core/Section.cpp
@@ -27,9 +27,9 @@ Section::Section (const ModuleSP &module_sp,
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 @@ Section::Section (const lldb::SectionSP &parent_section_sp,
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),
OpenPOWER on IntegriCloud