mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-18 08:28:51 +00:00
Fix hw1 fuzzer again
This commit is contained in:
14
src/opt/deadcode.rs
Normal file
14
src/opt/deadcode.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use crate::ir::*;
|
||||
use crate::opt::FunctionPass;
|
||||
use crate::*;
|
||||
|
||||
pub type Deadcode = FunctionPass<DeadcodeInner>;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct DeadcodeInner {}
|
||||
|
||||
impl Optimize<FunctionDefinition> for DeadcodeInner {
|
||||
fn optimize(&mut self, _code: &mut FunctionDefinition) -> bool {
|
||||
todo!("homework 6")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user