gave unused_fn WeakAnyLinkage; moved create_pgo_func_name_var
The sample json5format tests produce coverage results again (and work with opt-level 3!)
This commit is contained in:
parent
bcf755562a
commit
5a484a1aed
2 changed files with 19 additions and 22 deletions
|
@ -29,10 +29,6 @@ pub trait CoverageInfoMethods<'tcx>: BackendTypes {
|
|||
/// `instrprof.increment()`. The `Value` is only created once per instance.
|
||||
/// Multiple invocations with the same instance return the same `Value`.
|
||||
fn get_pgo_func_name_var(&self, instance: Instance<'tcx>) -> Self::Value;
|
||||
|
||||
/// Creates a new PGO function name variable. This should only be called
|
||||
/// to fill in the unused function names array.
|
||||
fn create_pgo_func_name_var(&self, instance: Instance<'tcx>) -> Self::Value;
|
||||
}
|
||||
|
||||
pub trait CoverageInfoBuilderMethods<'tcx>: BackendTypes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue