[PATCH] D146595: [clang] Add "debug_trampoline" attribute

Augusto Noronha via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 6 13:10:14 PDT 2023


augusto2112 added a comment.

@aaron.ballman thanks all the code reviews.

In D146595#4240608 <https://reviews.llvm.org/D146595#4240608>, @aaron.ballman wrote:

> Additionally, should you be allowed to write this on a lambda to skip over the function call operator? (If so, you may need to move the attribute from the lambda declaration onto the function call operator.)

I checked this, and it already attaches the debug flag to the call operator in the IR, so there shouldn't be any changes necessary.



================
Comment at: clang/include/clang/Basic/Attr.td:775
+  let Spellings = [Clang<"transparent_stepping">];
+  let Subjects = SubjectList<[Function]>;
+  let Documentation = [TransparentSteppingDocs];
----------------
aaron.ballman wrote:
> ObjC method decls as well?
Added objc methods (and tests) as well.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146595/new/

https://reviews.llvm.org/D146595



More information about the cfe-commits mailing list