diff options
| author | Patrick Walton <[email protected]> | 2011-04-25 16:59:49 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2011-04-25 17:00:25 -0700 |
| commit | c4e13cd1fa451327a756efc0c23bbbdbb9e7e1ae (patch) | |
| tree | da2c6ec1d2c28e316ee97df032c615bb92ad2de4 /src/comp/middle/ty.rs | |
| parent | Kick ty_var and ty_local entries out of the type store. Pre-compute presence ... (diff) | |
| download | rust-c4e13cd1fa451327a756efc0c23bbbdbb9e7e1ae.tar.xz rust-c4e13cd1fa451327a756efc0c23bbbdbb9e7e1ae.zip | |
rustc: Use the abbreviated type names to avoid LLVM bitcode size explosion
Diffstat (limited to 'src/comp/middle/ty.rs')
| -rw-r--r-- | src/comp/middle/ty.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/middle/ty.rs b/src/comp/middle/ty.rs index 194dcf44..ca461bc4 100644 --- a/src/comp/middle/ty.rs +++ b/src/comp/middle/ty.rs @@ -627,6 +627,12 @@ fn ty_to_str(ctxt cx, &t typ) -> str { ret s; } +fn ty_to_abbrev_str(ctxt cx, t typ) -> str { + auto f = def_to_str; + auto ecx = @rec(ds=f, tcx=cx); + ret metadata.Encode.ty_str(ecx, typ); +} + // Type folds type ty_walk = fn(t); |