diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-09 19:33:55 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2022-03-09 19:33:55 +0100 |
| commit | 54920ff25e632259b54a496693d984143a35ece6 (patch) | |
| tree | e33f76a7b0eb0db4e1c776444574ff131b32fc5b | |
| parent | 01ffb98db5b00d683b31a62c0c50a1b6e7065117 (diff) | |
| download | rust-54920ff25e632259b54a496693d984143a35ece6.tar.gz rust-54920ff25e632259b54a496693d984143a35ece6.zip | |
Add missing clif ir comment
| -rw-r--r-- | src/abi/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/abi/mod.rs b/src/abi/mod.rs index a249e5fa8ac..2aa80e4d10d 100644 --- a/src/abi/mod.rs +++ b/src/abi/mod.rs @@ -94,6 +94,9 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> { let sig = Signature { params, returns, call_conv: self.target_config.default_call_conv }; let func_id = self.module.declare_function(name, Linkage::Import, &sig).unwrap(); let func_ref = self.module.declare_func_in_func(func_id, &mut self.bcx.func); + if self.clif_comments.enabled() { + self.add_comment(func_ref, format!("{:?}", name)); + } let call_inst = self.bcx.ins().call(func_ref, args); if self.clif_comments.enabled() { self.add_comment(call_inst, format!("easy_call {}", name)); |
