[clang] [clang] inherit GD to let the codegen add kcfi type for ifunc (PR #96400)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 10 13:53:31 PDT 2024


efriedma-quic wrote:

The usual mechanism for emitting deferred definitions involves CodeGenModule::EmitDeferred(): declarations get added to the list by addDeferredDeclToEmit(), then it goes through to emit all the declarations on the list.  So it's a matter of making sure the resolver ends up on the list.  You should be able to look up the GlobalDecl from the mangled name using CodeGenModule::DeferredDecls, I think?

https://github.com/llvm/llvm-project/pull/96400


More information about the cfe-commits mailing list