Change dfg.inst_results to return a slice.
Now we can access instruction results and arguments as well as EBB arguments as slices. Delete the Values iterator which was traversing the linked lists of values. It is no longer needed.
This commit is contained in:
@@ -188,7 +188,7 @@ fn write_instruction(w: &mut Write,
|
||||
// Write value locations, if we have them.
|
||||
if !func.locations.is_empty() {
|
||||
let regs = isa.register_info();
|
||||
for r in func.dfg.inst_results(inst) {
|
||||
for &r in func.dfg.inst_results(inst) {
|
||||
write!(s,
|
||||
",{}",
|
||||
func.locations
|
||||
|
||||
Reference in New Issue
Block a user