Rename Intermediate to FuncData

This commit is contained in:
Rerumu
2022-06-10 23:35:25 -04:00
parent 78aa47cdd6
commit b8e40fe740
11 changed files with 47 additions and 47 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
use std::collections::BTreeSet;
use wasm_ast::{
node::{BinOp, CmpOp, Intermediate, LoadAt, StoreAt, UnOp, Value},
node::{BinOp, CmpOp, FuncData, LoadAt, StoreAt, UnOp, Value},
visit::{Driver, Visitor},
};
@@ -62,12 +62,12 @@ impl Visitor for Visit {
}
}
pub fn visit(ir: &Intermediate) -> BTreeSet<(&'static str, &'static str)> {
pub fn visit(ast: &FuncData) -> BTreeSet<(&'static str, &'static str)> {
let mut visit = Visit {
result: BTreeSet::new(),
};
ir.accept(&mut visit);
ast.accept(&mut visit);
visit.result
}
+3 -3
View File
@@ -1,7 +1,7 @@
use std::collections::BTreeSet;
use wasm_ast::{
node::{Intermediate, LoadAt, MemoryGrow, MemorySize, StoreAt},
node::{FuncData, LoadAt, MemoryGrow, MemorySize, StoreAt},
visit::{Driver, Visitor},
};
@@ -27,12 +27,12 @@ impl Visitor for Visit {
}
}
pub fn visit(ir: &Intermediate) -> BTreeSet<usize> {
pub fn visit(ast: &FuncData) -> BTreeSet<usize> {
let mut visit = Visit {
result: BTreeSet::new(),
};
ir.accept(&mut visit);
ast.accept(&mut visit);
visit.result
}