aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
index b09f42e..1689680 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
@@ -370,27 +370,6 @@ public:
return r;
}
- llvm::Expected<long long> AsUnsignedLongLong() {
- if (!m_py_obj)
- return nullDeref();
- assert(!PyErr_Occurred());
- long long r = PyLong_AsUnsignedLongLong(m_py_obj);
- if (PyErr_Occurred())
- return exception();
- return r;
- }
-
- llvm::Expected<unsigned long long> AsModuloUnsignedLongLong() const {
- // wraps on overflow, instead of raising an error.
- if (!m_py_obj)
- return nullDeref();
- assert(!PyErr_Occurred());
- unsigned long long r = PyLong_AsUnsignedLongLongMask(m_py_obj);
- if (PyErr_Occurred())
- return exception();
- return r;
- }
-
llvm::Expected<bool> IsInstance(const PythonObject &cls) {
if (!m_py_obj || !cls.IsValid())
return nullDeref();
@@ -421,10 +400,6 @@ template <>
llvm::Expected<long long> As<long long>(llvm::Expected<PythonObject> &&obj);
template <>
-llvm::Expected<unsigned long long>
-As<unsigned long long>(llvm::Expected<PythonObject> &&obj);
-
-template <>
llvm::Expected<std::string> As<std::string>(llvm::Expected<PythonObject> &&obj);
@@ -516,6 +491,8 @@ public:
static bool Check(PyObject *py_obj);
static void Convert(PyRefType &type, PyObject *&py_obj);
+ int64_t GetInteger() const;
+
void SetInteger(int64_t value);
StructuredData::IntegerSP CreateStructuredInteger() const;