diff options
Diffstat (limited to 'lldb/source/API/SBFile.cpp')
| -rw-r--r-- | lldb/source/API/SBFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/API/SBFile.cpp b/lldb/source/API/SBFile.cpp index 739de40b6e0..f5a38efe4a7 100644 --- a/lldb/source/API/SBFile.cpp +++ b/lldb/source/API/SBFile.cpp @@ -108,6 +108,11 @@ bool SBFile::operator!() const { return LLDB_RECORD_RESULT(!IsValid()); } +FileSP SBFile::GetFile() const { + LLDB_RECORD_METHOD_CONST_NO_ARGS(FileSP, SBFile, GetFile); + return m_opaque_sp; +} + namespace lldb_private { namespace repro { @@ -117,6 +122,7 @@ template <> void RegisterMethods<SBFile>(Registry &R) { LLDB_REGISTER_METHOD_CONST(bool, SBFile, IsValid, ()); LLDB_REGISTER_METHOD_CONST(bool, SBFile, operator bool,()); LLDB_REGISTER_METHOD_CONST(bool, SBFile, operator!,()); + LLDB_REGISTER_METHOD_CONST(FileSP, SBFile, GetFile, ()); LLDB_REGISTER_METHOD(lldb::SBError, SBFile, Close, ()); } } // namespace repro |

