about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2019-02-15 12:36:10 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2019-02-18 09:46:33 +1100
commitf0d8fbd283654479c50a2fec94bf2362eed0f189 (patch)
treec0d4e7c81585478c7da752728c571eed8aca9531 /src/rustllvm/RustWrapper.cpp
parentf8801f3bf641f0277087e6621d09f9a6a373b36c (diff)
downloadrust-f0d8fbd283654479c50a2fec94bf2362eed0f189.tar.gz
rust-f0d8fbd283654479c50a2fec94bf2362eed0f189.zip
Avoid a `clone()` in `transcribe()`.
The current code (expensively) clones the value within an `Rc`. This
commit changes things so that the `Rc` itself is (cheaply) cloned
instead, avoid some allocations.

This requires converting a few `Rc` instances to `Lrc`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions