This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Fixup code addresses in the Objective-C language runtime
ClosedPublic

Authored by JDevlieghere on Oct 27 2021, 1:46 PM.

Details

Summary

Upstream the calls to ABI::FixCodeAddress in the Objective-C language
runtime.

Diff Detail

Event Timeline

JDevlieghere requested review of this revision.Oct 27 2021, 1:46 PM
JDevlieghere created this revision.
aprantl accepted this revision.Oct 27 2021, 1:51 PM

This is all good of course, but I wonder if we should lift this into the type system and have functions returned a UnstrippedAddress type that you can only turn into an addr_t by calling FixCodeAddress.

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
2705

Why not sink this into m_runtime.GetClassDescriptorFromISA?

This revision is now accepted and ready to land.Oct 27 2021, 1:51 PM
JDevlieghere marked an inline comment as done.
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2021, 2:48 PM