diff options
author | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-17 01:35:22 +0000 |
---|---|---|
committer | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-17 01:35:22 +0000 |
commit | 0f783599a4c645d8ae826f990f7b938fac6e5dae (patch) | |
tree | 9792f137ff09b6b8b90cbcf3d75dd8a98999ea25 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
parent | 56ee31964f5a57621953eacdc8458bd41dfc4154 (diff) | |
download | bcm5719-llvm-0f783599a4c645d8ae826f990f7b938fac6e5dae.tar.gz bcm5719-llvm-0f783599a4c645d8ae826f990f7b938fac6e5dae.zip |
delete SWIG typemaps for FILE*
Summary:
The SWIG typemaps for FILE* are no longer used, so
this patch deletes them.
Reviewers: JDevlieghere, jasonmolenda, labath
Reviewed By: labath
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68963
llvm-svn: 375073
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
-rw-r--r-- | lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index e2112b15008..8c0618cd91a 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -837,25 +837,6 @@ bool PythonFile::Check(PyObject *py_obj) { #endif } -FileUP PythonFile::GetUnderlyingFile() const { - if (!IsValid()) - return nullptr; - - // We don't own the file descriptor returned by this function, make sure the - // File object knows about that. - PythonString py_mode = GetAttributeValue("mode").AsType<PythonString>(); - auto options = File::GetOptionsFromMode(py_mode.GetString()); - if (!options) { - llvm::consumeError(options.takeError()); - return nullptr; - } - auto file = std::unique_ptr<File>(new NativeFile( - PyObject_AsFileDescriptor(m_py_obj), options.get(), false)); - if (!file->IsValid()) - return nullptr; - return file; -} - namespace { class GIL { public: |