[llvm-branch-commits] [RFC][Clang] Allow plugins to hook into back-end (PR #165257)
Vassil Vassilev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Oct 27 08:14:07 PDT 2025
vgvassilev wrote:
> PluginASTAction would essentially require us to copy large parts of CodeGenAction.cpp
Do you mean that you will need to wrap clang's `BackendConsumer` into a `MultiplexConsumer` and overwrite its `HandleTranslationUnit` swapping `BackendConsumer::HandleTranslationUnit`'s `emitBackendOutput`?
https://github.com/llvm/llvm-project/pull/165257
More information about the llvm-branch-commits
mailing list