summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-21 20:27:45 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-21 20:27:45 +0000
commitea80ba8b9746ca1f6a5e250fefaa54bf37a943a1 (patch)
tree360ac2ca45d89e6568e10667f867e8a3194c1f26 /lldb/source/API
parentbe22131c28bc64727456fa9f53e1e9e8e02dd237 (diff)
downloadbcm5719-llvm-ea80ba8b9746ca1f6a5e250fefaa54bf37a943a1.tar.gz
bcm5719-llvm-ea80ba8b9746ca1f6a5e250fefaa54bf37a943a1.zip
Use self.TraceOn() API to decide whether to print debug output.
llvm-svn: 129935
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBInstruction.cpp7
1 files changed, 2 insertions, 5 deletions
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);
+}
OpenPOWER on IntegriCloud