rustc: Remove compiler support for __log_level()
This commit removes all internal support for the previously used __log_level() expression. The logging subsystem was previously modified to not rely on this magical expression. This also removes the only other function to use the module_data map in trans, decl_gc_metadata. It appears that this is an ancient function from a GC only used long ago. This does not remove the crate map entirely, as libgreen still uses it to hook in to the event loop provided by libgreen.
This commit is contained in:
parent
cc6ec8df95
commit
a921dc4873
18 changed files with 22 additions and 284 deletions
|
@ -1490,11 +1490,6 @@ pub fn print_expr(s: &mut State, expr: &ast::Expr) -> io::IoResult<()> {
|
|||
_ => ()
|
||||
}
|
||||
}
|
||||
ast::ExprLogLevel => {
|
||||
try!(word(&mut s.s, "__log_level"));
|
||||
try!(popen(s));
|
||||
try!(pclose(s));
|
||||
}
|
||||
ast::ExprInlineAsm(ref a) => {
|
||||
if a.volatile {
|
||||
try!(word(&mut s.s, "__volatile__ asm!"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue