From 49a6746942e164ddd1ef8d69f0d167e508c5b770 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 21 Nov 2014 22:23:08 +0000 Subject: Per off-list feedback, this API returns the *first* value with a given name, not the *only* one. Rename it to reflect that llvm-svn: 222582 --- lldb/source/API/SBValueList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/API/SBValueList.cpp') diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp index e96f482d4c96..71fabe0dfc0a 100644 --- a/lldb/source/API/SBValueList.cpp +++ b/lldb/source/API/SBValueList.cpp @@ -80,7 +80,7 @@ public: } lldb::SBValue - GetValueByName (const char* name) const + GetFirstValueByName (const char* name) const { if (name) { @@ -277,11 +277,11 @@ SBValueList::FindValueObjectByUID (lldb::user_id_t uid) } SBValue -SBValueList::GetValueByName (const char* name) const +SBValueList::GetFirstValueByName (const char* name) const { SBValue sb_value; if (m_opaque_ap.get()) - sb_value = m_opaque_ap->GetValueByName(name); + sb_value = m_opaque_ap->GetFirstValueByName(name); return sb_value; } -- cgit v1.2.3