[lldb] Remove duplicate "warning:"
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Apr 2022 22:04:02 +0000 (15:04 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Apr 2022 22:05:27 +0000 (15:05 -0700)
Remove "warning:" from the warning message itself. The default event
handler is already emitting the appropriate prefix.

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

index 32d3527..b8104af 100644 (file)
@@ -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()) {