diff options
| author | David Wood <david@davidtw.co> | 2020-08-28 16:24:52 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2020-08-31 11:20:52 +0100 |
| commit | fa01ce802f1b403a2140fd945b43af86ec3998a1 (patch) | |
| tree | 4eb8a9a114cba2bf3fb838a624a01e810e0d006e /src/rustllvm/RustWrapper.cpp | |
| parent | 6c44bcc4ffeb0ee8059c2c167388c69dedf1ea44 (diff) | |
| download | rust-fa01ce802f1b403a2140fd945b43af86ec3998a1.tar.gz rust-fa01ce802f1b403a2140fd945b43af86ec3998a1.zip | |
cg_llvm: `fewer_names` in `uncached_llvm_type`
This commit changes `uncached_llvm_type` so that a named struct type (with an empty name) is always created when the `fewer_names` option is enabled. By skipping the generation of names, we can improve perf. Giving `LLVMStructCreateNamed` an empty name works because LLVM will perform random renames to avoid collisions. Signed-off-by: David Wood <david@davidtw.co>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
