From ea80ba8b9746ca1f6a5e250fefaa54bf37a943a1 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Thu, 21 Apr 2011 20:27:45 +0000 Subject: Use self.TraceOn() API to decide whether to print debug output. llvm-svn: 129935 --- lldb/source/API/SBInstruction.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lldb/source/API/SBInstruction.cpp') diff --git a/lldb/source/API/SBInstruction.cpp b/lldb/source/API/SBInstruction.cpp index 4e5b4e2edc6..920ce3c60a6 100644 --- a/lldb/source/API/SBInstruction.cpp +++ b/lldb/source/API/SBInstruction.cpp @@ -155,8 +155,5 @@ SBInstruction::TestEmulation (lldb::SBStream &output_stream, const char *test_f if (!m_opaque_sp.get()) m_opaque_sp.reset (new PseudoInstruction()); - bool success = m_opaque_sp->TestEmulation (output_stream.get(), test_file); - if (output_stream.GetSize() > 0) - fprintf (stdout, "%s", output_stream.GetData()); - return success; -} \ No newline at end of file + return m_opaque_sp->TestEmulation (output_stream.get(), test_file); +} -- cgit v1.2.3