From: Jonas Devlieghere Date: Wed, 6 Apr 2022 22:04:02 +0000 (-0700) Subject: [lldb] Remove duplicate "warning:" X-Git-Tag: upstream/15.0.7~11233 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=815fa5bf44c459cf5e72b35da4311d6681952e1b;p=platform%2Fupstream%2Fllvm.git [lldb] Remove duplicate "warning:" Remove "warning:" from the warning message itself. The default event handler is already emitting the appropriate prefix. --- diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp index 32d3527..b8104af5c 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -2341,14 +2341,14 @@ void AppleObjCRuntimeV2::WarnIfNoClassesCached( Debugger &debugger(GetProcess()->GetTarget().GetDebugger()); switch (reason) { case SharedCacheWarningReason::eNotEnoughClassesRead: - Debugger::ReportWarning("warning: could not find Objective-C class data in " + Debugger::ReportWarning("could not find Objective-C class data in " "the process. This may reduce the quality of type " "information available.\n", debugger.GetID(), &m_no_classes_cached_warning); break; case SharedCacheWarningReason::eExpressionExecutionFailure: Debugger::ReportWarning( - "warning: could not execute support code to read " + "could not execute support code to read " "Objective-C class data in the process. This may " "reduce the quality of type information available.\n", debugger.GetID(), &m_no_classes_cached_warning); @@ -2373,7 +2373,7 @@ void AppleObjCRuntimeV2::WarnIfNoExpandedSharedCache() { std::string buffer; llvm::raw_string_ostream os(buffer); - os << "warning: libobjc.A.dylib is being read from process memory. This " + os << "libobjc.A.dylib is being read from process memory. This " "indicates that LLDB could not "; if (PlatformSP platform_sp = target.GetPlatform()) { if (platform_sp->IsHost()) {