Closed pgoodman closed 10 years ago
These would fit nicely into clients/util
.
Next commit will partially resolve this, as it introduces a lir::ConvertFunctionCallToJump
and a lir::ConvertJumpToFunctionCall
.
Also renames lir::Call
to lir::FunctionCall
to improve consistency with NativeInstruction::IsFunctionCall
.
Done with the is_tail_call.
Add a helper function
lir::ConvertCallToJump
, and make it just do aJMP_RELBRd
on the internalControlFlowInstruction::instruction
. Also add in ais_tail_call
toControlFlowInstruction
so that other tools can detect when this transformation has happened. E.g. this way tools can see when thetransparent_returns
tool has converted a function call into a jump.