HomePhabricator

[lldb] Add support for calling objc_direct methods from LLDB's expression…

Authored by teemperor on Dec 17 2019, 12:48 AM.

Description

[lldb] Add support for calling objc_direct methods from LLDB's expression evaluator.

Summary:
D69991 introduced __attribute__((objc_direct)) that allows directly calling methods without message passing.
This patch adds support for calling methods with this attribute to LLDB's expression evaluator.

The patch can be summarised in that LLDB just adds the same attribute to our module AST when we find a
method with __attribute__((objc_direct)) in our debug information.

Reviewers: aprantl, shafik

Reviewed By: shafik

Subscribers: JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71196