[PATCH] D156172: [clang][CodeGen] Emit annotations for function declarations.

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 25 14:34:48 PDT 2023


efriedma added a comment.

Slightly messed up my example because I forgot the function was unprototyped.  The following should show what I mean:

  void foo(void);
  void *xxx = (void*)foo;
  __attribute__((annotate("bar"))) void foo(){}

In terms of where the right place is, I don't recall the exact structure of that code off the top of my head, but I think there's somewhere we handle redeclarations?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D156172



More information about the cfe-commits mailing list