[Lldb-commits] [lldb] r243333 - Deprecate `SBValue::TypeIsPointerType`.
Chaoren Lin
chaorenl at google.com
Mon Jul 27 14:51:56 PDT 2015
Author: chaoren
Date: Mon Jul 27 16:51:56 2015
New Revision: 243333
URL: http://llvm.org/viewvc/llvm-project?rev=243333&view=rev
Log:
Deprecate `SBValue::TypeIsPointerType`.
Reviewers: clayborg
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D11540
Modified:
lldb/trunk/include/lldb/API/SBValue.h
lldb/trunk/source/API/SBValue.cpp
Modified: lldb/trunk/include/lldb/API/SBValue.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/API/SBValue.h?rev=243333&r1=243332&r2=243333&view=diff
==============================================================================
--- lldb/trunk/include/lldb/API/SBValue.h (original)
+++ lldb/trunk/include/lldb/API/SBValue.h Mon Jul 27 16:51:56 2015
@@ -350,6 +350,7 @@ public:
lldb::SBValue
Dereference ();
+ // Deprecated - please use GetType().IsPointerType() instead.
bool
TypeIsPointerType ();
Modified: lldb/trunk/source/API/SBValue.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBValue.cpp?rev=243333&r1=243332&r2=243333&view=diff
==============================================================================
--- lldb/trunk/source/API/SBValue.cpp (original)
+++ lldb/trunk/source/API/SBValue.cpp Mon Jul 27 16:51:56 2015
@@ -1306,22 +1306,11 @@ SBValue::Dereference ()
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 *
More information about the lldb-commits
mailing list