about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-02-16 09:43:16 -0800
committerPatrick Walton <pcwalton@mimiga.net>2013-02-16 10:20:52 -0800
commit548c0982cabe12fba5ee106e542f615f750af6e6 (patch)
tree1685893e9bea01d5791e12f27f6b59923c9d2599 /src/rt/rust_kernel.cpp
parent9ad8a1f46566ddcd705cc918863cee2946d8b946 (diff)
downloadrust-548c0982cabe12fba5ee106e542f615f750af6e6.tar.gz
rust-548c0982cabe12fba5ee106e542f615f750af6e6.zip
librustc: Remove `simplify_type` and replace with `sizing_type_of`. rs=blocking-servo
`simplify_type` was bogus, as there was no way for it to handle enums
properly. It was also slow, because it created many Rust types at runtime. In
general creating Rust types during trans is a source of slowness, and I'd like
to avoid doing it as much as possible. (It is probably not possible to
eliminate it entirely, due to `subst`, but we should get rid of as much of it
as we can.) So this patch replaces `simplify_type` with `sizing_type_of`,
which creates a size-equivalent LLVM type directly without going through a
Rust type first.

Because this is causing an ICE in Servo, I'm rubber stamping it.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions