about summary refs log tree commit diff
path: root/src/test/codegen/instrument-mcount.rs
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2019-12-30 21:35:13 -0800
committerFangrui Song <i@maskray.me>2019-12-30 23:16:02 -0800
commitb40dc30a3ea218caae39052eb0ef57fb15493072 (patch)
tree43f9f4d4a502c0bf7cc24866e545207aa71a2be9 /src/test/codegen/instrument-mcount.rs
parenta9dd56ff9a08d74c53d5cc22d18f126a12749608 (diff)
downloadrust-b40dc30a3ea218caae39052eb0ef57fb15493072.tar.gz
rust-b40dc30a3ea218caae39052eb0ef57fb15493072.zip
Use function attribute "frame-pointer" instead of "no-frame-pointer-elim"
LLVM 8 (D56351) introduced "frame-pointer". In LLVM 10 (D71863),
"no-frame-pointer-elim"/"no-frame-pointer-elim-non-leaf" will be
ignored.
Diffstat (limited to 'src/test/codegen/instrument-mcount.rs')
-rw-r--r--src/test/codegen/instrument-mcount.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/codegen/instrument-mcount.rs b/src/test/codegen/instrument-mcount.rs
index c72d09f7a03..e4e6d5ca2b8 100644
--- a/src/test/codegen/instrument-mcount.rs
+++ b/src/test/codegen/instrument-mcount.rs
@@ -1,7 +1,8 @@
+// min-llvm-version 8.0
 // ignore-tidy-linelength
 // compile-flags: -Z instrument-mcount
 
 #![crate_type = "lib"]
 
-// CHECK: attributes #{{.*}} "instrument-function-entry-inlined"="{{.*}}mcount{{.*}}" "no-frame-pointer-elim"="true"
+// CHECK: attributes #{{.*}} "frame-pointer"="all" "instrument-function-entry-inlined"="{{.*}}mcount{{.*}}"
 pub fn foo() {}