[Lldb-commits] [PATCH] D63052: [Target] Remove Process::GetObjCLanguageRuntime

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jun 10 12:25:05 PDT 2019


labath added inline comments.


================
Comment at: include/lldb/Target/ObjCLanguageRuntime.h:202
 
+  static ObjCLanguageRuntime *GetObjCLanguageRuntime(Process &process) {
+    return llvm::cast_or_null<ObjCLanguageRuntime>(
----------------
xiaobai wrote:
> labath wrote:
> > compnerd wrote:
> > > I think it would be nice to just call this `Get` (and we could have equivalents in the other languages).  It makes the uses less verbose and repetitive.
> > I like that idea.
> I also like this idea. Would you mind if I did that in a follow up?
You're introducing the function in this patch. What's the point in renaming it immediately after that?

I can see how renaming GetCPPLanguageRuntime might be a good thing to do in a separate patch, but I don't see a reason to do that with this function


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

https://reviews.llvm.org/D63052





More information about the lldb-commits mailing list