diff options
author | Jim Ingham <jingham@apple.com> | 2011-01-22 01:25:40 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-01-22 01:25:40 +0000 |
commit | e3be0c55f544908f2be1050f95fecec2469e32ac (patch) | |
tree | 2d5cfcd249f30962bb7d8d0f6ad395bb5897b4bb | |
parent | d8d148e0eec460157958c94a14be51ee4a13c691 (diff) | |
download | bcm5719-llvm-e3be0c55f544908f2be1050f95fecec2469e32ac.tar.gz bcm5719-llvm-e3be0c55f544908f2be1050f95fecec2469e32ac.zip |
Move some of the more noisy "log enable lldb expression" output to the verbose output.
llvm-svn: 124014
-rw-r--r-- | lldb/source/Expression/ASTResultSynthesizer.cpp | 10 | ||||
-rw-r--r-- | lldb/source/Expression/IRDynamicChecks.cpp | 6 | ||||
-rw-r--r-- | lldb/source/Expression/IRToDWARF.cpp | 6 |
3 files changed, 11 insertions, 11 deletions
diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp index 99e24728108..e581b965fea 100644 --- a/lldb/source/Expression/ASTResultSynthesizer.cpp +++ b/lldb/source/Expression/ASTResultSynthesizer.cpp @@ -133,7 +133,7 @@ ASTResultSynthesizer::SynthesizeFunctionResult (FunctionDecl *FunDecl) if (!function_decl) return false; - if (log) + if (log && log->GetVerbose()) { std::string s; raw_string_ostream os(s); @@ -150,8 +150,8 @@ ASTResultSynthesizer::SynthesizeFunctionResult (FunctionDecl *FunDecl) bool ret = SynthesizeBodyResult (compound_stmt, function_decl); - - if (log) + + if (log && log->GetVerbose()) { std::string s; raw_string_ostream os(s); @@ -160,7 +160,7 @@ ASTResultSynthesizer::SynthesizeFunctionResult (FunctionDecl *FunDecl) os.flush(); - log->Printf("Transformed function AST:\n%s", s.c_str()); + log->Printf ("Transformed function AST:\n%s", s.c_str()); } return ret; @@ -179,7 +179,7 @@ ASTResultSynthesizer::SynthesizeObjCMethodResult (ObjCMethodDecl *MethodDecl) if (!MethodDecl) return false; - if (log) + if (log && log->GetVerbose()) { std::string s; raw_string_ostream os(s); diff --git a/lldb/source/Expression/IRDynamicChecks.cpp b/lldb/source/Expression/IRDynamicChecks.cpp index 8be236191e7..a59ac644f84 100644 --- a/lldb/source/Expression/IRDynamicChecks.cpp +++ b/lldb/source/Expression/IRDynamicChecks.cpp @@ -487,8 +487,8 @@ IRDynamicChecks::runOnModule(llvm::Module &M) if (!ooc.Instrument()) return false; - - if (log) + + if (log && log->GetVerbose()) { std::string s; raw_string_ostream oss(s); @@ -497,7 +497,7 @@ IRDynamicChecks::runOnModule(llvm::Module &M) oss.flush(); - log->Printf("Module after dynamic checks: \n%s", s.c_str()); + log->Printf ("Module after dynamic checks: \n%s", s.c_str()); } return true; diff --git a/lldb/source/Expression/IRToDWARF.cpp b/lldb/source/Expression/IRToDWARF.cpp index 96016760dc6..88d880be219 100644 --- a/lldb/source/Expression/IRToDWARF.cpp +++ b/lldb/source/Expression/IRToDWARF.cpp @@ -187,8 +187,8 @@ IRToDWARF::runOnModule(Module &M) if (!runOnBasicBlock(function->getEntryBlock(), relocator)) return false; - - if (log) + + if (log && log->GetVerbose()) { std::string s; raw_string_ostream oss(s); @@ -197,7 +197,7 @@ IRToDWARF::runOnModule(Module &M) oss.flush(); - log->Printf("Module being translated to DWARF: \n%s", s.c_str()); + log->Printf ("Module being translated to DWARF: \n%s", s.c_str()); } // TEMPORARY: Fail in order to force execution in the target. |