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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to