Clear the given `Context` and reset it for use with a new function. This ensures that the `Context` is initialized with the default calling convention for the `TargetIsa`.
(&self, ctx: &mut Context)
| 855 | /// This ensures that the `Context` is initialized with the default calling |
| 856 | /// convention for the `TargetIsa`. |
| 857 | fn clear_context(&self, ctx: &mut Context) { |
| 858 | ctx.clear(); |
| 859 | ctx.func.signature.call_conv = self.isa().default_call_conv(); |
| 860 | } |
| 861 | |
| 862 | /// Create a new empty `Signature` with the default calling convention for |
| 863 | /// the `TargetIsa`, to which parameter and return types can be added for |
nothing calls this directly
no test coverage detected