[clang] [NFC] Parameterize Initialization of `clang::CodeGenerator` on a `TargetInfo` instance which may differ from the one in the `ASTContext` (PR #88977)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 13:42:10 PDT 2024


efriedma-quic wrote:

I don't understand the scenario you're envisioning here.  If, for example, `sizeof(long)` is different in the AST vs. CodeGen, everything will very likely explode.  And I don't want to make an open-ended commitment to support modifying properties of the target based on whatever happens to work at the moment.

What properties of the target can you safely manipulate?  Would it make sense to store those properties in a separate datastructure?

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


More information about the cfe-commits mailing list