summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/ConstString.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-02-05 00:44:54 +0000
committerPavel Labath <labath@google.com>2017-02-05 00:44:54 +0000
commit3b7e1981b2f66e0677f964a3e9cf30ce2d7d3f84 (patch)
tree235951d23167dfb1ee2385c906175011780ba1e7 /lldb/source/Utility/ConstString.cpp
parent978fdb75a4a21d8209b51c08d4bcd16a43e0779d (diff)
downloadbcm5719-llvm-3b7e1981b2f66e0677f964a3e9cf30ce2d7d3f84.tar.gz
bcm5719-llvm-3b7e1981b2f66e0677f964a3e9cf30ce2d7d3f84.zip
Remove LIBLLDB_LOG_VERBOSE category
Summary: Per discussion in D28616, having two ways two request logging (log enable lldb XXX verbose && log enable -v lldb XXX) is confusing. This removes the first option and standardizes all code to use the second one. I've added a LLDB_LOGV macro as a shorthand for if(log && log->GetVerbose()) and switched most of the affected log statements to use that (I've only left a couple of cases that were doing complex computations in an if(log) block). Reviewers: jingham, zturner Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D29510 llvm-svn: 294113
Diffstat (limited to 'lldb/source/Utility/ConstString.cpp')
-rw-r--r--lldb/source/Utility/ConstString.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Utility/ConstString.cpp b/lldb/source/Utility/ConstString.cpp
index eb515102420..73726c87335 100644
--- a/lldb/source/Utility/ConstString.cpp
+++ b/lldb/source/Utility/ConstString.cpp
@@ -334,3 +334,9 @@ size_t ConstString::StaticMemorySize() {
// Get the size of the static string pool
return StringPool().MemorySize();
}
+
+void llvm::format_provider<ConstString>::format(const ConstString &CS,
+ llvm::raw_ostream &OS,
+ llvm::StringRef Options) {
+ format_provider<StringRef>::format(CS.AsCString(), OS, Options);
+}
OpenPOWER on IntegriCloud