about summary refs log tree commit diff
path: root/compiler/rustc_codegen_ssa/src
diff options
context:
space:
mode:
authorRich Kadel <richkadel@google.com>2021-03-19 20:46:15 -0700
committerRich Kadel <richkadel@google.com>2021-03-19 20:46:15 -0700
commit5a484a1aed9265f44980a748ebca41037b2eb923 (patch)
treef03ef4f977513c914c6c8f9e94cf22f1ef64b015 /compiler/rustc_codegen_ssa/src
parentbcf755562a1e7c2ed4f6a292b3c82afc9b5b5fe6 (diff)
downloadrust-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.rs4
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 {