Add SBValue::GetID() member method call API.

llvm-svn: 134636
This commit is contained in:
Johnny Chen 2011-07-07 20:46:23 +00:00
parent 2f2d9cbb22
commit b0b8be755b
2 changed files with 11 additions and 0 deletions
lldb
include/lldb/API
source/API

View File

@ -44,6 +44,9 @@ public:
SBError SBError
GetError(); GetError();
lldb::user_id_t
GetID ();
const char * const char *
GetName(); GetName();

View File

@ -82,6 +82,14 @@ SBValue::GetError()
return sb_error; return sb_error;
} }
user_id_t
SBValue::GetID()
{
if (m_opaque_sp)
return m_opaque_sp->GetID();
return LLDB_INVALID_UID;
}
const char * const char *
SBValue::GetName() SBValue::GetName()
{ {