about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-10 23:06:10 +0000
committerbors <bors@rust-lang.org>2023-08-10 23:06:10 +0000
commita9b2c6a0ce700ee6d1cdcab3f3c1f7997ae726d1 (patch)
treec32f414f420b8332bbbe028761807c7b374b94d3 /compiler/rustc_mir_transform/src/coverage/mod.rs
parent439d066bcf9496b1b8c8dde8bef3bce607a621bb (diff)
parent4b154bc8e2bed4c69ae46dd761780a452073f771 (diff)
downloadrust-a9b2c6a0ce700ee6d1cdcab3f3c1f7997ae726d1.tar.gz
rust-a9b2c6a0ce700ee6d1cdcab3f3c1f7997ae726d1.zip
Auto merge of #114005 - Zalathar:no-cstr, r=jackh726
coverage: Don't convert filename/symbol strings to `CString` for FFI

LLVM APIs are usually perfectly happy to accept pointer/length strings, as long as we supply a suitable length value when creating a `StringRef` or `std::string`.

This lets us avoid quite a few intermediate `CString` copies during coverage codegen. It also lets us use an `IndexSet<Symbol>` (instead of an `IndexSet<CString>`) when building the deduplicated filename table.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions