diff options
| author | Luqman Aden <me@luqman.ca> | 2013-03-27 13:42:21 -0700 |
|---|---|---|
| committer | Luqman Aden <me@luqman.ca> | 2013-03-27 15:41:58 -0700 |
| commit | 203d691a6bf6795f3d1f77378696a4506dd550f2 (patch) | |
| tree | 345c876e08705654e22e34b5f08d9c92cf88990c /src/libsyntax/ext | |
| parent | 727a565f1e65c415b018f26d878a0d3ebdc9e3ea (diff) | |
| download | rust-203d691a6bf6795f3d1f77378696a4506dd550f2.tar.gz rust-203d691a6bf6795f3d1f77378696a4506dd550f2.zip | |
libsyntax: use a struct for inline asm in ast.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/asm.rs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/libsyntax/ext/asm.rs b/src/libsyntax/ext/asm.rs index a014d8ccb8b..c3faf4f1e09 100644 --- a/src/libsyntax/ext/asm.rs +++ b/src/libsyntax/ext/asm.rs @@ -59,7 +59,7 @@ pub fn expand_asm(cx: @ext_ctxt, sp: span, tts: &[ast::token_tree]) match state { Asm => { asm = expr_to_str(cx, p.parse_expr(), - ~"inline assembly must be a string literal."); + ~"inline assembly must be a string literal."); } Outputs => { while *p.token != token::EOF && @@ -163,8 +163,14 @@ pub fn expand_asm(cx: @ext_ctxt, sp: span, tts: &[ast::token_tree]) MRExpr(@ast::expr { id: cx.next_id(), callee_id: cx.next_id(), - node: ast::expr_inline_asm(@asm, inputs, outputs, - @cons, volatile, alignstack), + node: ast::expr_inline_asm(ast::inline_asm { + asm: @asm, + clobbers: @cons, + inputs: inputs, + outputs: outputs, + volatile: volatile, + alignstack: alignstack + }), span: sp }) } |
