so I'm probably missing something obvious. But in cranelift in codegen\src\ir\entities.rs I added pub enum ComdatMode { .. }
from module\src\data_context.rs which has use cranelift_codegen::ir;
I get: cannot find type ComdatMode
in module ir
not found in ir
anyone got a hint on where I should look ?
The path would be cranelift_codegen::ir::entities::ComdatMode
. I think you should add it to cranelift_module
though, as comdat doesn't influence codegen as far as I know. Only writing object files.
thanks. trying
is there a function or global variable symbol type I can use for the comdat api?
AnyEntity comes close, but really has too many options
I was thinking of something like:
add_comdat(&Self, main: FuncOrVarRef, mode: ComdatMode, symbols: &[FuncOrVarRef])
(On backend)
Last updated: Dec 23 2024 at 12:05 UTC