summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-07-27 21:51:56 +0000
committerChaoren Lin <chaorenl@google.com>2015-07-27 21:51:56 +0000
commit4630de80c5a859330d94c057ce67b0d2b3be5c17 (patch)
tree937302b70236cee2c0f70ba3963c3c1ecf1d041d
parentf1dfb4d1ebf2f07c879b3cad9a851803c59a6f26 (diff)
downloadbcm5719-llvm-4630de80c5a859330d94c057ce67b0d2b3be5c17.tar.gz
bcm5719-llvm-4630de80c5a859330d94c057ce67b0d2b3be5c17.zip
Deprecate `SBValue::TypeIsPointerType`.
Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11540 llvm-svn: 243333
-rw-r--r--lldb/include/lldb/API/SBValue.h1
-rw-r--r--lldb/source/API/SBValue.cpp15
2 files changed, 3 insertions, 13 deletions
diff --git a/lldb/include/lldb/API/SBValue.h b/lldb/include/lldb/API/SBValue.h
index a070b149f34..3217e273f7e 100644
--- a/lldb/include/lldb/API/SBValue.h
+++ b/lldb/include/lldb/API/SBValue.h
@@ -350,6 +350,7 @@ public:
lldb::SBValue
Dereference ();
+ // Deprecated - please use GetType().IsPointerType() instead.
bool
TypeIsPointerType ();
diff --git a/lldb/source/API/SBValue.cpp b/lldb/source/API/SBValue.cpp
index ef62c30e42c..9b720bdde19 100644
--- a/lldb/source/API/SBValue.cpp
+++ b/lldb/source/API/SBValue.cpp
@@ -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 *
OpenPOWER on IntegriCloud