summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBValueList.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2014-11-21 22:23:08 +0000
committerEnrico Granata <egranata@apple.com>2014-11-21 22:23:08 +0000
commit49a6746942e164ddd1ef8d69f0d167e508c5b770 (patch)
treed6d2445517f0ed5f66717a2bd23ef6785ae20f97 /lldb/source/API/SBValueList.cpp
parent6596ba79339fe2c155fd5337cd9ba3dfc6013d4d (diff)
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
Diffstat (limited to 'lldb/source/API/SBValueList.cpp')
-rw-r--r--lldb/source/API/SBValueList.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}