diff options
-rw-r--r-- | lldb/include/lldb/API/SBFile.h | 2 | ||||
-rw-r--r-- | lldb/source/API/SBInstruction.cpp | 2 | ||||
-rw-r--r-- | lldb/source/API/SBInstructionList.cpp | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/lldb/include/lldb/API/SBFile.h b/lldb/include/lldb/API/SBFile.h index 747e2eaad13..0dbf91439b4 100644 --- a/lldb/include/lldb/API/SBFile.h +++ b/lldb/include/lldb/API/SBFile.h @@ -14,6 +14,8 @@ namespace lldb { class LLDB_API SBFile { + friend class SBInstruction; + friend class SBInstructionList; friend class SBDebugger; friend class SBCommandReturnObject; friend class SBProcess; diff --git a/lldb/source/API/SBInstruction.cpp b/lldb/source/API/SBInstruction.cpp index 311402877f6..a9ef9fb59d2 100644 --- a/lldb/source/API/SBInstruction.cpp +++ b/lldb/source/API/SBInstruction.cpp @@ -264,7 +264,7 @@ void SBInstruction::Print(FILE *outp) { void SBInstruction::Print(SBFile out) { LLDB_RECORD_METHOD(void, SBInstruction, Print, (SBFile), out); - Print(out.GetFile()); + Print(out.m_opaque_sp); } void SBInstruction::Print(FileSP out_sp) { diff --git a/lldb/source/API/SBInstructionList.cpp b/lldb/source/API/SBInstructionList.cpp index 403ccaf75e9..8b3855c0883 100644 --- a/lldb/source/API/SBInstructionList.cpp +++ b/lldb/source/API/SBInstructionList.cpp @@ -130,7 +130,7 @@ void SBInstructionList::Print(SBFile out) { LLDB_RECORD_METHOD(void, SBInstructionList, Print, (SBFile), out); if (!out.IsValid()) return; - StreamFile stream(out.GetFile()); + StreamFile stream(out.m_opaque_sp); GetDescription(stream); } |