diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-04-18 08:44:30 -0300 |
|---|---|---|
| committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2014-04-19 21:12:02 -0300 |
| commit | 9faef77b237baf8cf9908c799be162ab28a9aa84 (patch) | |
| tree | 5d3e7218853203d1705446234cedbb2503178792 /src/rustllvm/RustWrapper.cpp | |
| parent | ad4062e8af18b9631291e2c50bf0370ad2768e19 (diff) | |
| download | rust-9faef77b237baf8cf9908c799be162ab28a9aa84.tar.gz rust-9faef77b237baf8cf9908c799be162ab28a9aa84.zip | |
Eliminate the need for Options in LruEntry.
LruEntry nodes previously used Option to encapsulate the key and value fields. This was used merely as a way avoid having values for the sigil node. Apart from wasting a few bytes for the discriminant, this cluttered the rest of the code, since these fields always contained Some on regular nodes as a class invariant. The Option wrapping was removed, and the values in the sigil field are initialized using mem::init, so that they don't contain any real data.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
