diff options
| author | Enrico Granata <egranata@apple.com> | 2014-11-21 22:23:08 +0000 |
|---|---|---|
| committer | Enrico Granata <egranata@apple.com> | 2014-11-21 22:23:08 +0000 |
| commit | 49a6746942e164ddd1ef8d69f0d167e508c5b770 (patch) | |
| tree | d6d2445517f0ed5f66717a2bd23ef6785ae20f97 /lldb | |
| parent | 6596ba79339fe2c155fd5337cd9ba3dfc6013d4d (diff) | |
| download | bcm5719-llvm-49a6746942e164ddd1ef8d69f0d167e508c5b770.tar.gz bcm5719-llvm-49a6746942e164ddd1ef8d69f0d167e508c5b770.zip | |
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')
| -rw-r--r-- | lldb/include/lldb/API/SBValueList.h | 2 | ||||
| -rw-r--r-- | lldb/scripts/Python/interface/SBValueList.i | 2 | ||||
| -rw-r--r-- | lldb/source/API/SBValueList.cpp | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lldb/include/lldb/API/SBValueList.h b/lldb/include/lldb/API/SBValueList.h index 154311d4b98..812fdac91c1 100644 --- a/lldb/include/lldb/API/SBValueList.h +++ b/lldb/include/lldb/API/SBValueList.h @@ -45,7 +45,7 @@ public: GetValueAtIndex (uint32_t idx) const; lldb::SBValue - GetValueByName (const char* name) const; + GetFirstValueByName (const char* name) const; lldb::SBValue FindValueObjectByUID (lldb::user_id_t uid); diff --git a/lldb/scripts/Python/interface/SBValueList.i b/lldb/scripts/Python/interface/SBValueList.i index 12aed864830..0ba9b7962b7 100644 --- a/lldb/scripts/Python/interface/SBValueList.i +++ b/lldb/scripts/Python/interface/SBValueList.i @@ -98,7 +98,7 @@ public: FindValueObjectByUID (lldb::user_id_t uid); lldb::SBValue - GetValueByName (const char* name) const; + GetFirstValueByName (const char* name) const; %pythoncode %{ def __len__(self): diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp index e96f482d4c9..71fabe0dfc0 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; } |

