diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-07-07 20:46:23 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-07-07 20:46:23 +0000 |
commit | b0b8be755b07e0d1fb1a46bd8a64dbd626ec1bec (patch) | |
tree | b88d23a98b43496097230650b9ed3d5c9a8a327b | |
parent | 2f2d9cbb22ed99337e275356e0869a3dbb9ebb46 (diff) | |
download | bcm5719-llvm-b0b8be755b07e0d1fb1a46bd8a64dbd626ec1bec.tar.gz bcm5719-llvm-b0b8be755b07e0d1fb1a46bd8a64dbd626ec1bec.zip |
Add SBValue::GetID() member method call API.
llvm-svn: 134636
-rw-r--r-- | lldb/include/lldb/API/SBValue.h | 3 | ||||
-rw-r--r-- | lldb/source/API/SBValue.cpp | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h index dc9c5dd5642..e4d4f5090d0 100644 --- a/lldb/include/lldb/API/SBValue.h +++ b/lldb/include/lldb/API/SBValue.h @@ -44,6 +44,9 @@ public: SBError GetError(); + lldb::user_id_t + GetID (); + const char * GetName(); diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp index c6a26d95c1d..e51919cacca 100644 --- a/lldb/source/API/SBValue.cpp +++ b/lldb/source/API/SBValue.cpp @@ -82,6 +82,14 @@ SBValue::GetError() return sb_error; } +user_id_t +SBValue::GetID() +{ + if (m_opaque_sp) + return m_opaque_sp->GetID(); + return LLDB_INVALID_UID; +} + const char * SBValue::GetName() { |