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

Brendan Dahl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 27 12:11:25 PDT 2023


brendandahl added a comment.

I looked into the above issue with mixing declarations and definitions and I think I can fix that by leaving the AddGlobalAnnotations call in EmitGlobalFunctionDefinition and only calling AddGlobalAnnotations from GetOrCreateLLVMFunction when it's for a definition.  However, with that I'm running into some duplicate annotations being created with C++ templates that I need to fix.

While looking into the duplicate annotations, I noticed someone else already implemented annotations for declarations <https://reviews.llvm.org/D111109>, but it was rolled back.


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