about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/attributes.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-10-17 20:11:20 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-10-31 09:09:25 +1100
commitce3e14a448e090abf494a91b87f124258c542d4c (patch)
tree9d0af14b1e682239e125da4f4ee05e0d092ad98e /compiler/rustc_codegen_llvm/src/attributes.rs
parent759e07f063fb8e6306ff1bdaeb70af56a878b415 (diff)
downloadrust-ce3e14a448e090abf494a91b87f124258c542d4c.tar.gz
rust-ce3e14a448e090abf494a91b87f124258c542d4c.zip
Remove support for `-Zprofile` (gcov-style coverage instrumentation)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/attributes.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/attributes.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/compiler/rustc_codegen_llvm/src/attributes.rs b/compiler/rustc_codegen_llvm/src/attributes.rs
index 2c5ec9dad59..64bb22e8cb2 100644
--- a/compiler/rustc_codegen_llvm/src/attributes.rs
+++ b/compiler/rustc_codegen_llvm/src/attributes.rs
@@ -232,11 +232,6 @@ fn probestack_attr<'ll>(cx: &CodegenCx<'ll, '_>) -> Option<&'ll Attribute> {
         return None;
     }
 
-    // probestack doesn't play nice either with gcov profiling.
-    if cx.sess().opts.unstable_opts.profile {
-        return None;
-    }
-
     let attr_value = match cx.sess().target.stack_probes {
         StackProbeType::None => return None,
         // Request LLVM to generate the probes inline. If the given LLVM version does not support