summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-07-07 20:46:23 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-07-07 20:46:23 +0000
commitb0b8be755b07e0d1fb1a46bd8a64dbd626ec1bec (patch)
treeb88d23a98b43496097230650b9ed3d5c9a8a327b
parent2f2d9cbb22ed99337e275356e0869a3dbb9ebb46 (diff)
downloadbcm5719-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.h3
-rw-r--r--lldb/source/API/SBValue.cpp8
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()
{
OpenPOWER on IntegriCloud