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/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.