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
This commit is contained in:
Enrico Granata
2014-11-21 22:23:08 +00:00
parent 6596ba7933
commit 49a6746942
3 changed files with 5 additions and 5 deletions

View File

@@ -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;
}