diff options
Diffstat (limited to 'lldb/source/API/SBFile.cpp')
-rw-r--r-- | lldb/source/API/SBFile.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lldb/source/API/SBFile.cpp b/lldb/source/API/SBFile.cpp index f5a38efe4a77..277402f31abf 100644 --- a/lldb/source/API/SBFile.cpp +++ b/lldb/source/API/SBFile.cpp @@ -100,24 +100,27 @@ SBError SBFile::Close() { SBFile::operator bool() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBFile, operator bool); - return LLDB_RECORD_RESULT(IsValid()); + return IsValid(); } bool SBFile::operator!() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBFile, operator!); - return LLDB_RECORD_RESULT(!IsValid()); + return !IsValid(); } FileSP SBFile::GetFile() const { LLDB_RECORD_METHOD_CONST_NO_ARGS(FileSP, SBFile, GetFile); - return m_opaque_sp; + return LLDB_RECORD_RESULT(m_opaque_sp); } namespace lldb_private { namespace repro { template <> void RegisterMethods<SBFile>(Registry &R) { - + LLDB_REGISTER_CONSTRUCTOR(SBFile, ()); + LLDB_REGISTER_CONSTRUCTOR(SBFile, (FileSP)); + LLDB_REGISTER_CONSTRUCTOR(SBFile, (FILE *, bool)); + LLDB_REGISTER_CONSTRUCTOR(SBFile, (int, const char *, bool)); LLDB_REGISTER_METHOD(lldb::SBError, SBFile, Flush, ()); LLDB_REGISTER_METHOD_CONST(bool, SBFile, IsValid, ()); LLDB_REGISTER_METHOD_CONST(bool, SBFile, operator bool,()); |