pprust: Fix asm output

This commit is contained in:
klutzy 2014-04-17 17:35:40 +09:00 committed by Alex Crichton
parent 7f203b6955
commit cc31bb0a9e

View File

@ -1516,22 +1516,27 @@ impl<'a> State<'a> {
try!(self.popen());
try!(self.print_string(a.asm.get(), a.asm_str_style));
try!(self.word_space(":"));
for &(ref co, o) in a.outputs.iter() {
try!(self.print_string(co.get(), ast::CookedStr));
try!(self.popen());
try!(self.print_expr(o));
try!(self.pclose());
try!(self.word_space(","));
}
try!(self.commasep(Inconsistent, a.outputs.as_slice(), |s, &(ref co, o)| {
try!(s.print_string(co.get(), ast::CookedStr));
try!(s.popen());
try!(s.print_expr(o));
try!(s.pclose());
Ok(())
}));
try!(space(&mut self.s));
try!(self.word_space(":"));
for &(ref co, o) in a.inputs.iter() {
try!(self.print_string(co.get(), ast::CookedStr));
try!(self.popen());
try!(self.print_expr(o));
try!(self.pclose());
try!(self.word_space(","));
}
try!(self.commasep(Inconsistent, a.inputs.as_slice(), |s, &(ref co, o)| {
try!(s.print_string(co.get(), ast::CookedStr));
try!(s.popen());
try!(s.print_expr(o));
try!(s.pclose());
Ok(())
}));
try!(space(&mut self.s));
try!(self.word_space(":"));
try!(self.print_string(a.clobbers.get(), ast::CookedStr));
try!(self.pclose());
}