[Lldb-commits] [PATCH] D89999: [lldb] Implement ObjCGetClassNameRaw using a UtilityFunction

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 22 18:46:44 PDT 2020


JDevlieghere created this revision.
JDevlieghere added a reviewer: jingham.
JDevlieghere requested review of this revision.

The static function ObjCGetClassNameRaw in AppleObjCRuntimeV2.cpp gets called fairly frequently to resolve the names of classes.  It runs a UserExpression, rather than making a UtilityFunction which means it is compiling, and JITing the expression every time it is called.  For something that’s called often like this within lldb it’s more efficient to write a UtilityFunction wrapper so you only have to JIT once.


https://reviews.llvm.org/D89999

Files:
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
  lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89999.300139.patch
Type: text/x-patch
Size: 8936 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201023/b3d1e042/attachment.bin>


More information about the lldb-commits mailing list