Skip to content

Commit

Permalink
pprust: Fix asm output
Browse files Browse the repository at this point in the history
  • Loading branch information
klutzy authored and alexcrichton committed May 14, 2014
1 parent 7f203b6 commit cc31bb0
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions src/libsyntax/print/pprust.rs
Expand Up @@ -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());
}
Expand Down

0 comments on commit cc31bb0

Please sign in to comment.