aboutsummaryrefslogtreecommitdiff
path: root/src/comp/middle
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-27 18:25:02 -0700
committerGraydon Hoare <[email protected]>2010-09-27 18:25:02 -0700
commit5b4b035c7a041badcc656e3c403417f16d9a05f8 (patch)
tree0542532722a028e1bbdd7af88fea6fc6cc562f06 /src/comp/middle
parentTranslate exit-task glue such that rustc's output programs exit properly. (diff)
downloadrust-5b4b035c7a041badcc656e3c403417f16d9a05f8.tar.xz
rust-5b4b035c7a041badcc656e3c403417f16d9a05f8.zip
Start building up the expression tower.
Diffstat (limited to 'src/comp/middle')
-rw-r--r--src/comp/middle/trans.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 81b471c2..b9b3f4d2 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -202,9 +202,9 @@ fn trans_upcall(@block_ctxt cx, str name, vec[ValueRef] args) -> ValueRef {
ret cx.build.Call(llglue, call_args);
}
-fn trans_log(@block_ctxt cx, &ast.atom a) {
- alt (a) {
- case (ast.atom_lit(?lit)) {
+fn trans_log(@block_ctxt cx, &ast.expr e) {
+ alt (e) {
+ case (ast.expr_lit(?lit)) {
alt (*lit) {
case (ast.lit_int(?i)) {
trans_upcall(cx, "upcall_log_int", vec(C_int(i)));
@@ -215,7 +215,7 @@ fn trans_log(@block_ctxt cx, &ast.atom a) {
}
}
case (_) {
- cx.fcx.tcx.sess.unimpl("atom variant in trans_log");
+ cx.fcx.tcx.sess.unimpl("expr variant in trans_log");
}
}
}