Files
wasmtime/src/libfilecheck
Jakob Stoklund Olesen ea748f7718 Use Cow<str> for the values of filecheck variables.
Often, an implementation of VariableMap can return references to
internal strings, and Cow::Borrow() allows that without making any
copies.

We still want to allow VariableMap implementations to return owned
strings in case they have to manufacture variable values on demand. The
Cow::Owned() variant does exactly that.

Switch the internal VariableMap implementations over to Cows. It turns
out they can simply store references to substrings of the input test,
completely avoiding string allocation for script-defined variables.
2016-09-16 09:45:43 -07:00
..
2016-09-09 10:45:10 -07:00
2016-09-09 10:45:10 -07:00
2016-09-09 10:45:10 -07:00
2016-09-09 17:08:29 -07:00
2016-09-09 17:08:29 -07:00