Skip to content

Commit 6d10b77

Browse files
authored
Fix some warnings, and make some more stuff work (#44)
* Fix some warnings, and make some more stuff wokr * Up the MSRV * Update and prepare for release
1 parent 9508ae4 commit 6d10b77

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
version:
14-
- 1.75.0
14+
- 1.80.0
1515
- stable
1616
- beta
1717
- nightly

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.7.1] 2025-02-14
8+
### Changed
9+
- `InstrumentationProfile::is_empty` now takes into account the symbol table
10+
- Bump MSRV to 1.80.0
11+
- Remove invalid assertion from `HashTable`
12+
713
## [0.7.0] - 2024-08-05
814
### Added
915
- LLVM 19 support (ignores function entry coverage and some failing proftext files)

Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "llvm_profparser"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
authors = ["xd009642 <[email protected]>"]
55
description = "Parsing and interpretation of llvm coverage profiles and generated data"
66
repository = "https://github.com/xd009642/llvm-profparser"
@@ -11,6 +11,7 @@ categories = ["encoding"]
1111
keywords = ["coverage", "llvm"]
1212
exclude = ["tests/*", ".github/*", "benches/*"]
1313
build = "build.rs"
14+
rust-version = "1.80.0"
1415

1516
[features]
1617
default = ["cli"]

build.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
use std::{env, process::Command};
22

33
fn main() {
4+
for i in 11..20 {
5+
println!("cargo::rustc-check-cfg=cfg(llvm_{})", i)
6+
}
47
let rustc = env::var("RUSTC").unwrap();
58

69
let output = Command::new(rustc).arg("-vV").output().unwrap();

src/hash_table.rs

-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ impl HashTable {
129129
_offset: usize,
130130
bucket_start: usize,
131131
) -> ParseResult<'a, Self> {
132-
assert!(bucket_start > 0);
133132
let (bytes, num_buckets) = le_u64(&input[bucket_start..])?;
134133
debug!("Number of hashtable buckets: {}", num_buckets);
135134
let (_bytes, mut num_entries) = le_u64(bytes)?;

src/instrumentation_profile/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ impl InstrumentationProfile {
245245

246246
/// Returns true if there are no instrumentation records associated with the profile
247247
pub fn is_empty(&self) -> bool {
248-
self.records.is_empty()
248+
self.records.is_empty() && self.symtab.is_empty()
249249
}
250250
}
251251

0 commit comments

Comments
 (0)