summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBSourceManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBSourceManager.cpp')
-rw-r--r--lldb/source/API/SBSourceManager.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/API/SBSourceManager.cpp b/lldb/source/API/SBSourceManager.cpp
index 32f792d8220..0fa98e35dea 100644
--- a/lldb/source/API/SBSourceManager.cpp
+++ b/lldb/source/API/SBSourceManager.cpp
@@ -9,6 +9,7 @@
#include "lldb/API/SBSourceManager.h"
+#include "lldb/API/SBStream.h"
#include "lldb/API/SBFileSpec.h"
#include "lldb/Core/Stream.h"
@@ -49,26 +50,23 @@ SBSourceManager::DisplaySourceLinesWithLineNumbers
uint32_t context_before,
uint32_t context_after,
const char* current_line_cstr,
- FILE *f
+ SBStream &s
)
{
if (m_opaque_ptr == NULL)
return 0;
- if (f == NULL)
+ if (s.m_opaque_ap.get() == NULL)
return 0;
if (file.IsValid())
{
- StreamFile str (f);
-
-
return m_opaque_ptr->DisplaySourceLinesWithLineNumbers (*file,
line,
context_before,
context_after,
current_line_cstr,
- &str);
+ s.m_opaque_ap.get());
}
return 0;
}
OpenPOWER on IntegriCloud