rustc: Implement foreign constants.

This is needed for a lot of Apple libraries, as Apple tends to put a lot of
globals in dynamic libraries.
This commit is contained in:
Patrick Walton
2012-08-25 15:09:33 -07:00
parent bb5c07922f
commit 8ef4551904
12 changed files with 139 additions and 71 deletions

View File

@@ -830,6 +830,7 @@ type foreign_item =
#[auto_serialize]
enum foreign_item_ {
foreign_item_fn(fn_decl, purity, ~[ty_param]),
foreign_item_const(@ty)
}
// The data we save and restore about an inlined item or method. This is not