about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2014-04-18 08:44:30 -0300
committerYuri Kunde Schlesner <yuriks@yuriks.net>2014-04-19 21:12:02 -0300
commit9faef77b237baf8cf9908c799be162ab28a9aa84 (patch)
tree5d3e7218853203d1705446234cedbb2503178792 /src/rustllvm/RustWrapper.cpp
parentad4062e8af18b9631291e2c50bf0370ad2768e19 (diff)
downloadrust-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