diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-08-27 23:12:05 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-09-05 01:48:20 -0700 |
| commit | 8a966183fe5129ea2a55a9898ac1bd0f16f3573d (patch) | |
| tree | 8e222f4e505499610a935accf49b73e5ee8e2a89 /src/libsyntax/fold.rs | |
| parent | 3c3ae1d0e26c9ae0906dc57daa14bb9e4627e3c8 (diff) | |
| download | rust-8a966183fe5129ea2a55a9898ac1bd0f16f3573d.tar.gz rust-8a966183fe5129ea2a55a9898ac1bd0f16f3573d.zip | |
Remove the __log function for __log_level
Also redefine all of the standard logging macros to use more rust code instead of custom LLVM translation code. This makes them a bit easier to understand, but also more flexibile for future types of logging. Additionally, this commit removes the LogType language item in preparation for changing how logging is performed.
Diffstat (limited to 'src/libsyntax/fold.rs')
| -rw-r--r-- | src/libsyntax/fold.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/libsyntax/fold.rs b/src/libsyntax/fold.rs index 7aa0f3abe87..1e4df7811dd 100644 --- a/src/libsyntax/fold.rs +++ b/src/libsyntax/fold.rs @@ -616,12 +616,7 @@ pub fn noop_fold_expr(e: &Expr_, fld: @ast_fold) -> Expr_ { ExprRet(ref e) => { ExprRet(e.map_move(|x| fld.fold_expr(x))) } - ExprLog(lv, e) => { - ExprLog( - fld.fold_expr(lv), - fld.fold_expr(e) - ) - } + ExprLogLevel => ExprLogLevel, ExprInlineAsm(ref a) => { ExprInlineAsm(inline_asm { inputs: a.inputs.map(|&(c, input)| (c, fld.fold_expr(input))), |
