Save a little bit of memory that was being reserved in a UniqueCStringMap

vector that can be sized to fit.

llvm-svn: 147324
This commit is contained in:
Greg Clayton 2011-12-28 22:24:04 +00:00
parent 3a01ddb7e9
commit d2c46a6e39
4 changed files with 2 additions and 8 deletions

View File

@ -211,7 +211,6 @@ protected:
m_is_external:1, // non-zero if this symbol is globally visible
m_size_is_sibling:1, // m_size contains the index of this symbol's sibling
m_size_is_synthesized:1,// non-zero if this symbol's size was calculated using a delta between this symbol and the next
m_searched_for_function:1,// non-zero if we have looked for the function associated with this symbol already.
m_type:8;
uint32_t m_flags; // A copy of the flags from the original symbol table, the ObjectFile plug-in can interpret these
AddressRange m_addr_range; // Contains the value, or the section offset address when the value is an address in a section, and the size (if any)

View File

@ -159,7 +159,7 @@ public:
protected:
ConstString m_name; // The basename of the variable (no namespaces)
Mangled m_mangled; // The mangled name of hte variable
Mangled m_mangled; // The mangled name of the variable
lldb::SymbolFileTypeSP m_symfile_type_sp; // The type pointer of the variable (int, struct, class, etc)
lldb::ValueType m_scope; // global, parameter, local
SymbolContextScope *m_owner_scope; // The symbol file scope that this variable was defined in

View File

@ -30,7 +30,6 @@ Symbol::Symbol() :
m_is_external (false),
m_size_is_sibling (false),
m_size_is_synthesized (false),
m_searched_for_function (false),
m_type (eSymbolTypeInvalid),
m_flags (),
m_addr_range ()
@ -62,7 +61,6 @@ Symbol::Symbol
m_is_external (external),
m_size_is_sibling (false),
m_size_is_synthesized (false),
m_searched_for_function (false),
m_type (type),
m_flags (flags),
m_addr_range (section, offset, size)
@ -92,7 +90,6 @@ Symbol::Symbol
m_is_external (external),
m_size_is_sibling (false),
m_size_is_synthesized (false),
m_searched_for_function (false),
m_type (type),
m_flags (flags),
m_addr_range (range)
@ -110,7 +107,6 @@ Symbol::Symbol(const Symbol& rhs):
m_is_external (rhs.m_is_external),
m_size_is_sibling (rhs.m_size_is_sibling),
m_size_is_synthesized (false),
m_searched_for_function (false),
m_type (rhs.m_type),
m_flags (rhs.m_flags),
m_addr_range (rhs.m_addr_range)
@ -132,7 +128,6 @@ Symbol::operator= (const Symbol& rhs)
m_is_external = rhs.m_is_external;
m_size_is_sibling = rhs.m_size_is_sibling;
m_size_is_synthesized = rhs.m_size_is_sibling;
m_searched_for_function = rhs.m_searched_for_function;
m_type = rhs.m_type;
m_flags = rhs.m_flags;
m_addr_range = rhs.m_addr_range;
@ -152,7 +147,6 @@ Symbol::Clear()
m_is_external = false;
m_size_is_sibling = false;
m_size_is_synthesized = false;
m_searched_for_function = false;
m_type = eSymbolTypeInvalid;
m_flags = 0;
m_addr_range.Clear();

View File

@ -322,6 +322,7 @@ Symtab::InitNameIndexes()
}
m_name_to_index.Sort();
m_name_to_index.SizeToFit();
}
}