Move some of the more noisy "log enable lldb expression" output to the verbose output.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@124014 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ASTResultSynthesizer.cpp b/source/Expression/ASTResultSynthesizer.cpp
index 99e2472..e581b96 100644
--- a/source/Expression/ASTResultSynthesizer.cpp
+++ b/source/Expression/ASTResultSynthesizer.cpp
@@ -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);
diff --git a/source/Expression/IRDynamicChecks.cpp b/source/Expression/IRDynamicChecks.cpp
index 8be2361..a59ac64 100644
--- a/source/Expression/IRDynamicChecks.cpp
+++ b/source/Expression/IRDynamicChecks.cpp
@@ -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;
diff --git a/source/Expression/IRToDWARF.cpp b/source/Expression/IRToDWARF.cpp
index 9601676..88d880b 100644
--- a/source/Expression/IRToDWARF.cpp
+++ b/source/Expression/IRToDWARF.cpp
@@ -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.