This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Implement ObjCGetClassNameRaw using a UtilityFunction
AbandonedPublic

Authored by JDevlieghere on Oct 22 2020, 6:46 PM.

Details

Reviewers
jingham
Summary

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.

Diff Detail

Event Timeline

JDevlieghere requested review of this revision.Oct 22 2020, 6:46 PM
JDevlieghere created this revision.
  • Remove accidentally staged changes
JDevlieghere planned changes to this revision.Oct 23 2020, 8:47 PM

I need rebase this on my new UtilityFunction API