diff options
author | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-15 17:41:40 +0000 |
---|---|---|
committer | Lawrence D'Anna <lawrence_danna@apple.com> | 2019-10-15 17:41:40 +0000 |
commit | 30cf609548d9379178ef618d9c8790459221ed22 (patch) | |
tree | 858eb178708952d85cc7d9e283350f71c0a1d2f3 /lldb/scripts | |
parent | fdfd6ab12e5e2ad3f6641a3b4442b3140212d29b (diff) | |
download | llvm-30cf609548d9379178ef618d9c8790459221ed22.tar.gz |
remove FILE* usage from SBStream.i
Summary:
This patch removes FILE* and replaces it with SBFile and FileSP the
SWIG interface for `SBStream.i`. And this is the last one. With
this change, nothing in the python API will can access a FILE* method
on the C++ side.
Reviewers: JDevlieghere, jasonmolenda, labath
Reviewed By: labath
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D68960
llvm-svn: 374924
Diffstat (limited to 'lldb/scripts')
-rw-r--r-- | lldb/scripts/interface/SBStream.i | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lldb/scripts/interface/SBStream.i b/lldb/scripts/interface/SBStream.i index fa882906d0e5..31fb3802bf62 100644 --- a/lldb/scripts/interface/SBStream.i +++ b/lldb/scripts/interface/SBStream.i @@ -75,7 +75,18 @@ public: RedirectToFile (const char *path, bool append); void - RedirectToFileHandle (FILE *fh, bool transfer_fh_ownership); + RedirectToFile (lldb::SBFile file); + + void + RedirectToFile (lldb::FileSP file); + + %extend { + %feature("autodoc", "DEPRECATED, use RedirectToFile"); + void + RedirectToFileHandle (lldb::FileSP file, bool transfer_fh_ownership) { + self->RedirectToFile(file); + } + } void RedirectToFileDescriptor (int fd, bool transfer_fh_ownership); |