summaryrefslogtreecommitdiff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Correctly mark parameter `RustMappingRegions` as pointer-to-`const`Zalathar2023-05-091-1/+1
| | | | | The regions don't need to be mutable because we pass a copy of them to LLVM instead, and this matches the `*const` in the Rust-side signature.
* Isolate coverage FFI type layouts from their underlying LLVM C++ typesZalathar2023-05-091-7/+100
|
* rustc_llvm: replace llvm::makeArrayRef with ArrayRef constructors.Dmitri Gribenko2023-01-111-5/+6
| | | | LLVM upstream has deprecated llvm::makeArrayRef and will remove it.
* Update the minimum external LLVM to 13Josh Stone2022-08-141-11/+0
|
* Update CoverageMappingFormat Support to Version6Arpad Borsos2021-11-231-2/+7
| | | | | Version 5 adds Branch Regions which are a prerequisite for branch coverage. Version 6 can use the zeroth filename as prefix for other relative files.
* Update the minimum external LLVM to 11Josh Stone2021-10-221-7/+0
|
* fix: I meant LLVM version 13, not 12Augie Fackler2021-03-191-1/+1
|
* llvm-wrapper: pass std::string instead of StringRefAugie Fackler2021-03-161-0/+7
| | | | | LLVM change 5fbd1a333aa1a0b70903d036b98ea56c51ae5224 modified this function to want std::string instead of StringRef, which is easily done.
* Don't directly expose coverage::CounterMappingRegion via FFINikita Popov2021-03-011-2/+22
| | | | | | The definition of this struct changes in LLVM 12 due to the addition of branch coverage support. To avoid future mismatches, declare our own struct and then convert between them.
* Improved version checkRich Kadel2020-11-251-3/+2
|
* Check for LLVM 11+ when using `-Z instrument-coverage`Rich Kadel2020-11-241-0/+8
| | | | | | | | * `rustc` should now compile under LLVM 9 or 10 * Compiler generates an error if `-Z instrument-coverage` is specified but LLVM version is less than 11 * Coverage tests that require `-Z instrument-coverage` and run codegen should be skipped if LLVM version is less than 11
* Upgrades the coverage map to Version 4Rich Kadel2020-11-231-16/+31
| | | | | | | Changes the coverage map injected into binaries compiled with `-Zinstrument-coverage` to LLVM Coverage Mapping Format, Version 4 (from Version 3). Note, binaries compiled with this version will require LLVM tools from at least LLVM Version 11.
* Move `rustllvm` into `rustc_llvm`Vadim Petrochenkov2020-09-091-0/+70