diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-01-17 20:45:01 +0000 | 
| commit | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (patch) | |
| tree | 4adf86a776049cbf7f69a1929c4babcbbef925eb /lldb/source/API/SBFile.cpp | |
| parent | 7cc9cf2bf09f069cb2dd947ead05d0b54301fb71 (diff) | |
Notes
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 f5a38efe4a779..277402f31abf7 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,());  | 
