about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/attributes.rs
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2019-05-28 16:48:03 +0200
committerMichael Woerister <michaelwoerister@posteo>2019-06-21 09:54:58 +0200
commitb7fe2ca5e09b8edab393073198f8f55e1a78079f (patch)
tree82ea23a980699d42e2bb9d13b7d8c8eeaee8705e /src/librustc_codegen_llvm/attributes.rs
parent314194ef1785b130bfb85589fa44b6d53f50c565 (diff)
downloadrust-b7fe2ca5e09b8edab393073198f8f55e1a78079f.tar.gz
rust-b7fe2ca5e09b8edab393073198f8f55e1a78079f.zip
Stabilize profile-guided optimization.
Diffstat (limited to 'src/librustc_codegen_llvm/attributes.rs')
-rw-r--r--src/librustc_codegen_llvm/attributes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/attributes.rs b/src/librustc_codegen_llvm/attributes.rs
index 4735588f29a..94abf1796d3 100644
--- a/src/librustc_codegen_llvm/attributes.rs
+++ b/src/librustc_codegen_llvm/attributes.rs
@@ -102,8 +102,8 @@ pub fn set_probestack(cx: &CodegenCx<'ll, '_>, llfn: &'ll Value) {
         return
     }
 
-    // probestack doesn't play nice either with pgo-gen.
-    if cx.sess().opts.debugging_opts.pgo_gen.enabled() {
+    // probestack doesn't play nice either with `-C profile-generate`.
+    if cx.sess().opts.cg.profile_generate.enabled() {
         return;
     }