[all-commits] [llvm/llvm-project] d5b54b: [lldb] Add support for calling objc_direct methods...

Raphael Isemann via All-commits all-commits at lists.llvm.org
Tue Dec 17 01:29:05 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d5b54bbfaf19a8527ebf70fbf23cb8d2937f15ef
      https://github.com/llvm/llvm-project/commit/d5b54bbfaf19a8527ebf70fbf23cb8d2937f15ef
  Author: Raphael Isemann <teemperor at gmail.com>
  Date:   2019-12-17 (Tue, 17 Dec 2019)

  Changed paths:
    M lldb/include/lldb/Symbol/ClangASTContext.h
    A lldb/packages/Python/lldbsuite/test/lang/objc/objc_direct-methods/Makefile
    A lldb/packages/Python/lldbsuite/test/lang/objc/objc_direct-methods/TestObjCDirectMethods.py
    A lldb/packages/Python/lldbsuite/test/lang/objc/objc_direct-methods/main.m
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
    M lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.h
    M lldb/source/Symbol/ClangASTContext.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list