[Lldb-commits] [PATCH] D11540: Deprecate `SBValue::TypeIsPointerType`.
Chaoren Lin
chaorenl at google.com
Mon Jul 27 14:52:25 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL243333: Deprecate `SBValue::TypeIsPointerType`. (authored by chaoren).
Changed prior to commit:
http://reviews.llvm.org/D11540?vs=30737&id=30741#toc
Repository:
rL LLVM
http://reviews.llvm.org/D11540
Files:
lldb/trunk/include/lldb/API/SBValue.h
lldb/trunk/source/API/SBValue.cpp
Index: lldb/trunk/source/API/SBValue.cpp
===================================================================
--- lldb/trunk/source/API/SBValue.cpp
+++ lldb/trunk/source/API/SBValue.cpp
@@ -1306,22 +1306,11 @@
return sb_value;
}
+// Deprecated - please use GetType().IsPointerType() instead.
bool
SBValue::TypeIsPointerType ()
{
- bool is_ptr_type = false;
-
- ValueLocker locker;
- lldb::ValueObjectSP value_sp(GetSP(locker));
- if (value_sp)
- is_ptr_type = value_sp->IsPointerType();
-
- Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
- if (log)
- log->Printf ("SBValue(%p)::TypeIsPointerType () => %i",
- static_cast<void*>(value_sp.get()), is_ptr_type);
-
- return is_ptr_type;
+ return GetType().IsPointerType();
}
void *
Index: lldb/trunk/include/lldb/API/SBValue.h
===================================================================
--- lldb/trunk/include/lldb/API/SBValue.h
+++ lldb/trunk/include/lldb/API/SBValue.h
@@ -350,6 +350,7 @@
lldb::SBValue
Dereference ();
+ // Deprecated - please use GetType().IsPointerType() instead.
bool
TypeIsPointerType ();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11540.30741.patch
Type: text/x-patch
Size: 1190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150727/81d98587/attachment.bin>
More information about the lldb-commits
mailing list