Allow dead_code for existing arch specific methods

This commit is contained in:
Brandon Fish 2019-08-02 14:07:10 -06:00
parent 2f70a199e4
commit e2e096117a

View File

@ -100,6 +100,7 @@ pub struct InstanceImage {
}
impl ModuleStateMap {
#[warn(dead_code)]
fn lookup_call_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> {
if ip < base || ip - base >= self.total_size {
None
@ -123,6 +124,7 @@ impl ModuleStateMap {
}
}
#[warn(dead_code)]
fn lookup_trappable_ip(
&self,
ip: usize,
@ -150,6 +152,7 @@ impl ModuleStateMap {
}
}
#[warn(dead_code)]
fn lookup_loop_ip(&self, ip: usize, base: usize) -> Option<(&FunctionStateMap, MachineState)> {
if ip < base || ip - base >= self.total_size {
None