-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for generating unique *.profraw files by default when usi…
…ng the `-C instrument-coverage` flag. Respond to PR comments.
- Loading branch information
1 parent
20ffea6
commit 1008822
Showing
4 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Test that `-Cinstrument-coverage` creates expected __llvm_profile_filename symbol in LLVM IR. | ||
|
||
// needs-profiler-support | ||
// compile-flags: -Cinstrument-coverage | ||
|
||
// CHECK: @__llvm_profile_filename = {{.*}}"default_%m_%p.profraw\00"{{.*}} | ||
|
||
#![crate_type="lib"] | ||
|
||
#[inline(never)] | ||
fn some_function() { | ||
|
||
} | ||
|
||
pub fn some_other_function() { | ||
some_function(); | ||
} |