diff options
Diffstat (limited to 'yjit/src/asm')
-rw-r--r-- | yjit/src/asm/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/yjit/src/asm/mod.rs b/yjit/src/asm/mod.rs index 586b01243d..a5ef8dcf4f 100644 --- a/yjit/src/asm/mod.rs +++ b/yjit/src/asm/mod.rs @@ -356,12 +356,15 @@ impl CodeBlock { self.asm_comments.get(&pos) } + #[cfg(feature = "disasm")] pub fn remove_comments(&mut self, start_addr: CodePtr, end_addr: CodePtr) { - #[cfg(feature = "disasm")] for addr in start_addr.into_usize()..end_addr.into_usize() { self.asm_comments.remove(&addr); } } + #[cfg(not(feature = "disasm"))] + #[inline] + pub fn remove_comments(&mut self, _: CodePtr, _: CodePtr) {} pub fn clear_comments(&mut self) { #[cfg(feature = "disasm")] |