When you call Function::display()
you get a pretty bare-bones representation of the function that uses numerical names for things like imported symbols or functions (including the current function's name), is there a way to add "debug info" in order for the .display()
'd version of a function to say v20 = call foobarbaz(v18, v19)
instead of v20 = call fn0(v18, v19)
?
such a feature doesn't exist right now
https://github.com/bjorn3/rustc_codegen_cranelift/blob/master/src/pretty_clif.rs allows adding comments to instructions as well as the definition of several kinds of entities like imported functions.
Last updated: Nov 22 2024 at 17:03 UTC