forked from OSchip/llvm-project
build fix for SBInstruction.
oops! I cherry-picked rL374820 thinking it was completely independent of D68737, but it wasn't. It makes an incidental use of SBFile::GetFile, which is introduced there, so I broke the build. The docs say you can commit without review for "obvious". I think this qualifies. If this kind of fix isn't considered obvious, let me know and I'll revert instead. Fixes: rL374820 llvm-svn: 374825
This commit is contained in:
parent
31a26001a1
commit
9efbc564ba
|
@ -14,6 +14,8 @@
|
||||||
namespace lldb {
|
namespace lldb {
|
||||||
|
|
||||||
class LLDB_API SBFile {
|
class LLDB_API SBFile {
|
||||||
|
friend class SBInstruction;
|
||||||
|
friend class SBInstructionList;
|
||||||
friend class SBDebugger;
|
friend class SBDebugger;
|
||||||
friend class SBCommandReturnObject;
|
friend class SBCommandReturnObject;
|
||||||
friend class SBProcess;
|
friend class SBProcess;
|
||||||
|
|
|
@ -264,7 +264,7 @@ void SBInstruction::Print(FILE *outp) {
|
||||||
|
|
||||||
void SBInstruction::Print(SBFile out) {
|
void SBInstruction::Print(SBFile out) {
|
||||||
LLDB_RECORD_METHOD(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) {
|
void SBInstruction::Print(FileSP out_sp) {
|
||||||
|
|
|
@ -130,7 +130,7 @@ void SBInstructionList::Print(SBFile out) {
|
||||||
LLDB_RECORD_METHOD(void, SBInstructionList, Print, (SBFile), out);
|
LLDB_RECORD_METHOD(void, SBInstructionList, Print, (SBFile), out);
|
||||||
if (!out.IsValid())
|
if (!out.IsValid())
|
||||||
return;
|
return;
|
||||||
StreamFile stream(out.GetFile());
|
StreamFile stream(out.m_opaque_sp);
|
||||||
GetDescription(stream);
|
GetDescription(stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue