LLVM 8 (D56351) introduced "frame-pointer". In LLVM 10 (D71863), "no-frame-pointer-elim"/"no-frame-pointer-elim-non-leaf" will be ignored.
8 lines
238 B
Rust
8 lines
238 B
Rust
// min-llvm-version 8.0
|
|
// ignore-tidy-linelength
|
|
// compile-flags: -Z instrument-mcount
|
|
|
|
#![crate_type = "lib"]
|
|
|
|
// CHECK: attributes #{{.*}} "frame-pointer"="all" "instrument-function-entry-inlined"="{{.*}}mcount{{.*}}"
|
|
pub fn foo() {}
|