summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-11-26 16:48:12 +0000
committeremaste <emaste@FreeBSD.org>2014-11-26 16:48:12 +0000
commit0147dda7de9580d13778ecb4c9e92b83b7a63911 (patch)
treeb16dc95f693ed59342b6141cd3fd9f59a6cd7e7e /contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp
parentbfd4c39c61ae9b29542625bb12b6f7f4b1f8c727 (diff)
parent01ee1789d6aa7294e5966a97f8d29387f6f81699 (diff)
downloadFreeBSD-src-0147dda7de9580d13778ecb4c9e92b83b7a63911.zip
FreeBSD-src-0147dda7de9580d13778ecb4c9e92b83b7a63911.tar.gz
Update LLDB snapshot to upstream r216948 (git 50f7fe44)
This is approximately "LLDB 3.5" although with a little bit of skew, and will go along with the Clang 3.5 import. Sponsored by: DARPA, AFRL
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp')
-rw-r--r--contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp b/contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp
index 053ff34..3ea6c0d 100644
--- a/contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp
+++ b/contrib/llvm/tools/lldb/source/Interpreter/PythonDataObjects.cpp
@@ -31,7 +31,7 @@ using namespace lldb;
// PythonObject
//----------------------------------------------------------------------
PythonObject::PythonObject (const lldb::ScriptInterpreterObjectSP &script_object_sp) :
- m_py_obj (NULL)
+ m_py_obj (nullptr)
{
if (script_object_sp)
Reset ((PyObject *)script_object_sp->GetObject());
@@ -133,8 +133,8 @@ PythonString::Reset (PyObject *py_obj)
if (py_obj && PyString_Check(py_obj))
return PythonObject::Reset(py_obj);
- PythonObject::Reset(NULL);
- return py_obj == NULL;
+ PythonObject::Reset(nullptr);
+ return py_obj == nullptr;
}
const char*
@@ -142,7 +142,7 @@ PythonString::GetString() const
{
if (m_py_obj)
return PyString_AsString(m_py_obj);
- return NULL;
+ return nullptr;
}
size_t
@@ -202,8 +202,8 @@ PythonInteger::Reset (PyObject *py_obj)
return PythonObject::Reset(py_obj);
}
- PythonObject::Reset(NULL);
- return py_obj == NULL;
+ PythonObject::Reset(nullptr);
+ return py_obj == nullptr;
}
int64_t
@@ -230,7 +230,7 @@ PythonInteger::SetInteger (int64_t value)
//----------------------------------------------------------------------
PythonList::PythonList (bool create_empty) :
- PythonObject(create_empty ? PyList_New(0) : NULL)
+ PythonObject(create_empty ? PyList_New(0) : nullptr)
{
}
@@ -269,8 +269,8 @@ PythonList::Reset (PyObject *py_obj)
if (py_obj && PyList_Check(py_obj))
return PythonObject::Reset(py_obj);
- PythonObject::Reset(NULL);
- return py_obj == NULL;
+ PythonObject::Reset(nullptr);
+ return py_obj == nullptr;
}
uint32_t
@@ -308,7 +308,7 @@ PythonList::AppendItem (const PythonObject &object)
//----------------------------------------------------------------------
PythonDictionary::PythonDictionary (bool create_empty) :
-PythonObject(create_empty ? PyDict_New() : NULL)
+PythonObject(create_empty ? PyDict_New() : nullptr)
{
}
@@ -342,8 +342,8 @@ PythonDictionary::Reset (PyObject *py_obj)
if (py_obj && PyDict_Check(py_obj))
return PythonObject::Reset(py_obj);
- PythonObject::Reset(NULL);
- return py_obj == NULL;
+ PythonObject::Reset(nullptr);
+ return py_obj == nullptr;
}
uint32_t
OpenPOWER on IntegriCloud