Fix formatting of multi-line blocks in asm-comments
This commit is contained in:
parent
f676547c97
commit
9b02acbc5d
1 changed files with 1 additions and 1 deletions
|
|
@ -653,7 +653,7 @@ fn add_comment(bcx: block, text: ~str) {
|
|||
let ccx = bcx.ccx();
|
||||
if !ccx.sess.no_asm_comments() {
|
||||
let sanitized = str::replace(text, ~"$", ~"");
|
||||
let comment_text = ~"# " + sanitized;
|
||||
let comment_text = ~"# " + str::replace(sanitized, ~"\n", ~"\n\t# ");
|
||||
let asm = str::as_c_str(comment_text, |c| {
|
||||
str::as_c_str(~"", |e| {
|
||||
count_insn(bcx, ~"inlineasm");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue