diff options
| author | Rich Kadel <richkadel@google.com> | 2021-03-19 20:46:15 -0700 |
|---|---|---|
| committer | Rich Kadel <richkadel@google.com> | 2021-03-19 20:46:15 -0700 |
| commit | 5a484a1aed9265f44980a748ebca41037b2eb923 (patch) | |
| tree | f03ef4f977513c914c6c8f9e94cf22f1ef64b015 /compiler/rustc_codegen_ssa/src | |
| parent | bcf755562a1e7c2ed4f6a292b3c82afc9b5b5fe6 (diff) | |
| download | rust-5a484a1aed9265f44980a748ebca41037b2eb923.tar.gz rust-5a484a1aed9265f44980a748ebca41037b2eb923.zip | |
gave unused_fn WeakAnyLinkage; moved create_pgo_func_name_var
The sample json5format tests produce coverage results again (and work with opt-level 3!)
Diffstat (limited to 'compiler/rustc_codegen_ssa/src')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/traits/coverageinfo.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_codegen_ssa/src/traits/coverageinfo.rs b/compiler/rustc_codegen_ssa/src/traits/coverageinfo.rs index c7157528396..b2b0b9eac91 100644 --- a/compiler/rustc_codegen_ssa/src/traits/coverageinfo.rs +++ b/compiler/rustc_codegen_ssa/src/traits/coverageinfo.rs @@ -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 { |
