Skip to content

Commit

Permalink
Deprecate SBValue::TypeIsPointerType.
Browse files Browse the repository at this point in the history
Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D11540

llvm-svn: 243333
  • Loading branch information
chaoren committed Jul 27, 2015
1 parent f1dfb4d commit 4630de8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
1 change: 1 addition & 0 deletions lldb/include/lldb/API/SBValue.h
Expand Up @@ -350,6 +350,7 @@ class LLDB_API SBValue
lldb::SBValue
Dereference ();

// Deprecated - please use GetType().IsPointerType() instead.
bool
TypeIsPointerType ();

Expand Down
15 changes: 2 additions & 13 deletions lldb/source/API/SBValue.cpp
Expand Up @@ -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 *
Expand Down

0 comments on commit 4630de8

Please sign in to comment.