[Lldb-commits] [PATCH] D74187: [lldb] Add method Language::IsMangledName

Shafik Yaghmour via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 7 16:58:57 PST 2020


shafik added subscribers: mib, shafik.
shafik added inline comments.


================
Comment at: lldb/source/Plugins/Language/ObjC/ObjCLanguage.h:96-98
+  bool IsMangledName(llvm::StringRef name) const override {
+    return false;
+  }
----------------
xiaobai wrote:
> friss wrote:
> > The original code was calling `IsPossibleObjCMethodName` and it looks like you completely lose this codepath with this rewrite. Unclear to me if it's the right thing to return here, but that's definitely a change in behavior.
> If I understand correctly, Objective-C names aren't mangled in general, and are usually stored in the `m_demangled` name of `Mangled`, so that code path should have been bogus to begin with. Maybe I'm missing a detail though?
> 
> I can add a comment to this to clarify that Objective-C names aren't mangled (if I am correct in my understanding).
I believe this is true, I have not verified it myself. I believe what happens is that `m_mangled` is just set directly in the Objective-C but it probably would be nice to verify this via a test in `MangledTest.cpp` I actually though @mib had added a test here for Objective-C the other day.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74187/new/

https://reviews.llvm.org/D74187





More information about the lldb-commits mailing list