aboutsummaryrefslogtreecommitdiff
path: root/src/boot/be
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-20 23:56:43 -0700
committerGraydon Hoare <[email protected]>2010-09-20 23:56:43 -0700
commitc5f4789d5b75d3098665b17d318144cb7c54f42a (patch)
tree2d0ef3ef0e85aa7f2453d8bae762c89552a99ed9 /src/boot/be
parentWrap long lines. (diff)
downloadrust-c5f4789d5b75d3098665b17d318144cb7c54f42a.tar.xz
rust-c5f4789d5b75d3098665b17d318144cb7c54f42a.zip
Bind pattern slots with ?, drop parens from 0-ary tag constructors, translate 0-ary constructors as constants. Rustc loses ~300kb.
Diffstat (limited to 'src/boot/be')
-rw-r--r--src/boot/be/il.ml4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/boot/be/il.ml b/src/boot/be/il.ml
index 2a5b643a..0e13b4c0 100644
--- a/src/boot/be/il.ml
+++ b/src/boot/be/il.ml
@@ -128,7 +128,9 @@ let mem_off (mem:mem) (off:Asm.expr64) : mem =
Abs e -> Abs (addto e)
| RegIn (r, None) -> RegIn (r, Some off)
| RegIn (r, Some e) -> RegIn (r, Some (addto e))
- | Spill _ -> bug () "Adding offset to spill slot"
+ | Spill _ ->
+ bug () "Adding offset %s to spill slot"
+ (Asm.string_of_expr64 off)
;;
let mem_off_imm (mem:mem) (imm:int64) : mem =