[Lldb-commits] [PATCH] D79823: [lldb][Core] Remove dead codepath in Mangled

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue May 12 16:43:01 PDT 2020


xiaobai created this revision.
xiaobai added reviewers: friss, JDevlieghere, shafik.
Herald added a project: LLDB.

Objective-C names are stored in m_demangled, not in m_mangled. The
method in the condition will never return true.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79823

Files:
  lldb/source/Core/Mangled.cpp


Index: lldb/source/Core/Mangled.cpp
===================================================================
--- lldb/source/Core/Mangled.cpp
+++ lldb/source/Core/Mangled.cpp
@@ -413,8 +413,6 @@
     const char *mangled_name = mangled.GetCString();
     if (CPlusPlusLanguage::IsCPPMangledName(mangled_name))
       return lldb::eLanguageTypeC_plus_plus;
-    else if (ObjCLanguage::IsPossibleObjCMethodName(mangled_name))
-      return lldb::eLanguageTypeObjC;
   } else {
     // ObjC names aren't really mangled, so they won't necessarily be in the
     // mangled name slot.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79823.263562.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200512/ee68904c/attachment.bin>


More information about the lldb-commits mailing list