Removes build warnings for usused code for lightbeam build (#493)
This commit is contained in:
committed by
Dan Gohman
parent
ab80785c05
commit
c46d6b7269
@@ -616,6 +616,7 @@ struct RelocateAccess {
|
|||||||
pub struct TranslatedCodeSection {
|
pub struct TranslatedCodeSection {
|
||||||
exec_buf: ExecutableBuffer,
|
exec_buf: ExecutableBuffer,
|
||||||
func_starts: Vec<AssemblyOffset>,
|
func_starts: Vec<AssemblyOffset>,
|
||||||
|
#[allow(dead_code)]
|
||||||
relocatable_accesses: Vec<RelocateAccess>,
|
relocatable_accesses: Vec<RelocateAccess>,
|
||||||
op_offset_map: Vec<(AssemblyOffset, Box<dyn Display + Send + Sync>)>,
|
op_offset_map: Vec<(AssemblyOffset, Box<dyn Display + Send + Sync>)>,
|
||||||
}
|
}
|
||||||
@@ -5056,7 +5057,7 @@ impl<'this, M: ModuleContext> Context<'this, M> {
|
|||||||
// TODO: This inefficiently duplicates registers but it's not really possible
|
// TODO: This inefficiently duplicates registers but it's not really possible
|
||||||
// to double up stack space right now.
|
// to double up stack space right now.
|
||||||
/// Saves volatile (i.e. caller-saved) registers before a function call, if they are used.
|
/// Saves volatile (i.e. caller-saved) registers before a function call, if they are used.
|
||||||
fn save_volatile(&mut self, bounds: impl std::ops::RangeBounds<usize>) {
|
fn save_volatile(&mut self, _bounds: impl std::ops::RangeBounds<usize>) {
|
||||||
self.save_regs(SCRATCH_REGS, ..);
|
self.save_regs(SCRATCH_REGS, ..);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user