[Lldb-commits] [lldb] r124014 - in /lldb/trunk/source/Expression: ASTResultSynthesizer.cpp IRDynamicChecks.cpp IRToDWARF.cpp
Jim Ingham
jingham at apple.com
Fri Jan 21 17:25:40 PST 2011
Author: jingham
Date: Fri Jan 21 19:25:40 2011
New Revision: 124014
URL: http://llvm.org/viewvc/llvm-project?rev=124014&view=rev
Log:
Move some of the more noisy "log enable lldb expression" output to the verbose output.
Modified:
lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
lldb/trunk/source/Expression/IRDynamicChecks.cpp
lldb/trunk/source/Expression/IRToDWARF.cpp
Modified: lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ASTResultSynthesizer.cpp?rev=124014&r1=124013&r2=124014&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ASTResultSynthesizer.cpp (original)
+++ lldb/trunk/source/Expression/ASTResultSynthesizer.cpp Fri Jan 21 19:25:40 2011
@@ -133,7 +133,7 @@
if (!function_decl)
return false;
- if (log)
+ if (log && log->GetVerbose())
{
std::string s;
raw_string_ostream os(s);
@@ -150,8 +150,8 @@
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 @@
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 @@
if (!MethodDecl)
return false;
- if (log)
+ if (log && log->GetVerbose())
{
std::string s;
raw_string_ostream os(s);
Modified: lldb/trunk/source/Expression/IRDynamicChecks.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRDynamicChecks.cpp?rev=124014&r1=124013&r2=124014&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRDynamicChecks.cpp (original)
+++ lldb/trunk/source/Expression/IRDynamicChecks.cpp Fri Jan 21 19:25:40 2011
@@ -487,8 +487,8 @@
if (!ooc.Instrument())
return false;
-
- if (log)
+
+ if (log && log->GetVerbose())
{
std::string s;
raw_string_ostream oss(s);
@@ -497,7 +497,7 @@
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;
Modified: lldb/trunk/source/Expression/IRToDWARF.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRToDWARF.cpp?rev=124014&r1=124013&r2=124014&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRToDWARF.cpp (original)
+++ lldb/trunk/source/Expression/IRToDWARF.cpp Fri Jan 21 19:25:40 2011
@@ -187,8 +187,8 @@
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 @@
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.
More information about the lldb-commits
mailing list