diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2011-07-19 20:57:44 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2011-07-19 20:57:44 +0000 |
commit | 9df29e32c9d2a77c224d10b0d22aa36443232ab5 (patch) | |
tree | 3743351699368adc4d3a96c293dccbcfe8c4c07e | |
parent | 9663dd3f00f1b3510733942f42a51805436c778d (diff) | |
download | bcm5719-llvm-9df29e32c9d2a77c224d10b0d22aa36443232ab5.tar.gz bcm5719-llvm-9df29e32c9d2a77c224d10b0d22aa36443232ab5.zip |
Applied Matt Johnson patch to ValueObject and FormatManager
llvm-svn: 135523
-rw-r--r-- | lldb/include/lldb/Core/FormatManager.h | 22 | ||||
-rw-r--r-- | lldb/source/Core/ValueObject.cpp | 18 |
2 files changed, 20 insertions, 20 deletions
diff --git a/lldb/include/lldb/Core/FormatManager.h b/lldb/include/lldb/Core/FormatManager.h index 739e6aed371..1b5094d3bcc 100644 --- a/lldb/include/lldb/Core/FormatManager.h +++ b/lldb/include/lldb/Core/FormatManager.h @@ -77,19 +77,20 @@ class FormatNavigator; template<typename KeyType, typename ValueType> class FormatMap { -private: - typedef typename ValueType::SharedPointer ValueSP; - Mutex m_map_mutex; - IFormatChangeListener* listener; - friend class FormatNavigator<KeyType, ValueType>; friend class FormatManager; - + public: - typedef std::map<KeyType, ValueSP> MapType; -private: - MapType m_map; + typedef typename ValueType::SharedPointer ValueSP; + typedef std::map<KeyType, ValueSP> MapType; + typedef typename MapType::iterator MapIterator; + typedef bool(*CallbackType)(void*, KeyType, const ValueSP&); + +private: + MapType m_map; + Mutex m_map_mutex; + IFormatChangeListener* listener; MapType& map() { @@ -102,9 +103,6 @@ private: } public: - - typedef typename MapType::iterator MapIterator; - typedef bool(*CallbackType)(void*, KeyType, const ValueSP&); FormatMap(IFormatChangeListener* lst = NULL) : m_map(), diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp index 2d2972d8600..5721b40f548 100644 --- a/lldb/source/Core/ValueObject.cpp +++ b/lldb/source/Core/ValueObject.cpp @@ -72,6 +72,11 @@ ValueObject::ValueObject (ValueObject &parent) : m_dynamic_value (NULL), m_deref_valobj(NULL), m_format (eFormatDefault), + m_last_format_mgr_revision(0), + m_last_summary_format(), + m_forced_summary_format(), + m_last_value_format(), + m_user_id_of_forced_summary(0), m_value_is_valid (false), m_value_did_change (false), m_children_count_valid (false), @@ -80,10 +85,6 @@ ValueObject::ValueObject (ValueObject &parent) : m_is_deref_of_parent (false), m_is_array_item_for_pointer(false), m_is_bitfield_for_scalar(false), - m_last_format_mgr_revision(0), - m_last_value_format(), - m_last_summary_format(), - m_forced_summary_format(), m_dump_printable_counter(0) { m_manager->ManageObject(this); @@ -111,6 +112,11 @@ ValueObject::ValueObject (ExecutionContextScope *exe_scope) : m_dynamic_value (NULL), m_deref_valobj(NULL), m_format (eFormatDefault), + m_last_format_mgr_revision(0), + m_last_summary_format(), + m_forced_summary_format(), + m_last_value_format(), + m_user_id_of_forced_summary(0), m_value_is_valid (false), m_value_did_change (false), m_children_count_valid (false), @@ -119,10 +125,6 @@ ValueObject::ValueObject (ExecutionContextScope *exe_scope) : m_is_deref_of_parent (false), m_is_array_item_for_pointer(false), m_is_bitfield_for_scalar(false), - m_last_format_mgr_revision(0), - m_last_value_format(), - m_last_summary_format(), - m_forced_summary_format(), m_dump_printable_counter(0) { m_manager = new ValueObjectManager(); |